Skip to content

Commit b3ab173

Browse files
authored
Merge pull request #194 from smoelius/master
Test with both stable and nightly in CI
2 parents f22da2d + 7811b44 commit b3ab173

File tree

1 file changed

+35
-25
lines changed

1 file changed

+35
-25
lines changed

.github/workflows/rust.yml

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,46 @@
11
name: Rust
22

33
on:
4-
- push
5-
- pull_request
4+
- push
5+
- pull_request
66

77
jobs:
88
build_ubuntu:
99
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
toolchain: [stable, nightly]
1013
steps:
11-
- run: sudo apt-get install llvm
12-
- uses: actions/checkout@v2
13-
with:
14-
submodules: true
15-
- name: Build
16-
run: cargo build --verbose
17-
- name: Build examples (with AFL instrumentation)
18-
run: cargo run afl build --examples --verbose
19-
- name: Run tests (with AFL instrumentation)
20-
run: cargo run afl test --verbose
21-
env:
22-
AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES: "1"
14+
- run: sudo apt-get install llvm
15+
- uses: actions/checkout@v2
16+
with:
17+
submodules: true
18+
- name: Rustup
19+
run: rustup default ${{ matrix.toolchain }}
20+
- name: Build
21+
run: cargo build --verbose
22+
- name: Build examples (with AFL instrumentation)
23+
run: cargo run afl build --examples --verbose
24+
- name: Run tests (with AFL instrumentation)
25+
run: cargo run afl test --verbose
26+
env:
27+
AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES: "1"
2328
build_macos:
2429
runs-on: macos-latest
30+
strategy:
31+
matrix:
32+
toolchain: [stable, nightly]
2533
steps:
26-
- uses: actions/checkout@v2
27-
with:
28-
submodules: true
29-
- name: Build
30-
run: cargo build --verbose
31-
- name: Build examples (with AFL instrumentation)
32-
run: cargo run afl build --examples --verbose
33-
- name: Run tests (with AFL instrumentation)
34-
run: cargo run afl test --verbose
35-
env:
36-
AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES: "1"
34+
- uses: actions/checkout@v2
35+
with:
36+
submodules: true
37+
- name: Rustup
38+
run: rustup default ${{ matrix.toolchain }}
39+
- name: Build
40+
run: cargo build --verbose
41+
- name: Build examples (with AFL instrumentation)
42+
run: cargo run afl build --examples --verbose
43+
- name: Run tests (with AFL instrumentation)
44+
run: cargo run afl test --verbose
45+
env:
46+
AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES: "1"

0 commit comments

Comments
 (0)