Skip to content

Commit c3660c9

Browse files
committed
Migrate to github actions for CI
1 parent 165b5af commit c3660c9

File tree

3 files changed

+50
-32
lines changed

3 files changed

+50
-32
lines changed

.github/workflows/main.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
test:
6+
name: Test
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
rust: [stable, beta, nightly]
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Install Rust (
14+
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
15+
- run: cargo test
16+
- run: cargo test --features debug
17+
- run: cargo test --features global
18+
- run: cargo test --release
19+
- run: cargo test --features debug --release
20+
- run: RUSTFLAGS='--cfg test_lots' cargo test --release
21+
- run: RUSTFLAGS='--cfg test_lots' cargo test --release --features debug
22+
23+
rustfmt:
24+
name: Rustfmt
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@master
28+
- name: Install Rust
29+
run: rustup update stable && rustup default stable && rustup component add rustfmt
30+
- run: cargo fmt -- --check
31+
32+
wasm:
33+
name: WebAssembly
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@master
37+
- name: Install Rust
38+
run: rustup update stable && rustup default stable && rustup target add wasm32-unknown-unknown
39+
- run: cargo build --target wasm32-unknown-unknown
40+
- run: cargo build --target wasm32-unknown-unknown --release
41+
42+
alloc_api:
43+
name: Allocator API
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@master
47+
- name: Install Rust
48+
run: rustup update nightly && rustup default nightly
49+
- run: cargo test --features 'allocator-api global'
50+

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
A port of [dlmalloc] to Rust.
44

5-
[![Build Status](https://travis-ci.com/alexcrichton/dlmalloc-rs.svg?branch=master)](https://travis-ci.com/alexcrichton/dlmalloc-rs)
6-
75
[Documentation](https://docs.rs/dlmalloc)
86

97
[dlmalloc]: http://g.oswego.edu/dl/html/malloc.html

0 commit comments

Comments
 (0)