|
1 | 1 | name: Rust |
2 | 2 |
|
3 | 3 | on: |
4 | | -- push |
5 | | -- pull_request |
| 4 | + - push |
| 5 | + - pull_request |
6 | 6 |
|
7 | 7 | jobs: |
8 | 8 | build_ubuntu: |
9 | 9 | runs-on: ubuntu-latest |
| 10 | + strategy: |
| 11 | + matrix: |
| 12 | + toolchain: [stable, nightly] |
10 | 13 | 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" |
23 | 28 | build_macos: |
24 | 29 | runs-on: macos-latest |
| 30 | + strategy: |
| 31 | + matrix: |
| 32 | + toolchain: [stable, nightly] |
25 | 33 | 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