|
1 | | -on: [push, pull_request] |
| 1 | +on: |
| 2 | + push: |
| 3 | + branches: |
| 4 | + - master |
| 5 | + pull_request: {} |
2 | 6 |
|
3 | 7 | name: Continuous integration |
4 | 8 |
|
5 | 9 | jobs: |
6 | | - Tests: |
7 | | - name: Tests |
| 10 | + Stable: |
| 11 | + name: Test - stable toolchain |
8 | 12 | runs-on: ubuntu-latest |
9 | 13 | strategy: |
10 | 14 | fail-fast: false |
11 | | - matrix: |
12 | | - include: |
13 | | - - rust: 1.58.0 |
14 | | - env: |
15 | | - DO_FUZZ: true |
16 | | - - rust: stable |
17 | | - env: |
18 | | - DO_INTEGRATION: true |
19 | | - - rust: beta |
20 | | - - rust: nightly |
21 | | - - rust: 1.48.0 |
22 | 15 | steps: |
| 16 | + - name: Checkout Crate |
| 17 | + uses: actions/checkout@v3 |
| 18 | + - name: Checkout Toolchain |
| 19 | + # https://github.com/dtolnay/rust-toolchain |
| 20 | + uses: dtolnay/rust-toolchain@stable |
| 21 | + - name: Running test script |
| 22 | + env: |
| 23 | + DO_DOCS: true |
| 24 | + DO_DOCSRS: false |
| 25 | + DO_FUZZ: false |
| 26 | + DO_INTEGRATION: false |
| 27 | + DO_LINT: true |
| 28 | + DO_FEATURE_MATRIX: true |
| 29 | + run: ./contrib/test.sh |
| 30 | + |
| 31 | + Nightly: |
| 32 | + name: Test - nightly toolchain |
| 33 | + runs-on: ubuntu-latest |
| 34 | + strategy: |
| 35 | + fail-fast: false |
| 36 | + steps: |
| 37 | + - name: Checkout Crate |
| 38 | + uses: actions/checkout@v3 |
| 39 | + - name: Checkout Toolchain |
| 40 | + uses: dtolnay/rust-toolchain@nightly |
| 41 | + - name: Running test script |
| 42 | + env: |
| 43 | + DO_DOCS: true |
| 44 | + DO_DOCSRS: true |
| 45 | + DO_FUZZ: false |
| 46 | + DO_INTEGRATION: false |
| 47 | + DO_LINT: false |
| 48 | + DO_FEATURE_MATRIX: true |
| 49 | + run: ./contrib/test.sh |
| 50 | + |
| 51 | + MSRV: |
| 52 | + name: Test - 1.48.0 toolchain |
| 53 | + runs-on: ubuntu-latest |
| 54 | + strategy: |
| 55 | + fail-fast: false |
| 56 | + steps: |
| 57 | + - name: Checkout Crate |
| 58 | + uses: actions/checkout@v3 |
| 59 | + - name: Checkout Toolchain |
| 60 | + uses: dtolnay/rust-toolchain@1.48.0 |
| 61 | + - name: Running test script |
| 62 | + env: |
| 63 | + DO_DOCS: false |
| 64 | + DO_DOCSRS: false |
| 65 | + DO_FUZZ: false |
| 66 | + DO_INTEGRATION: false |
| 67 | + DO_LINT: false |
| 68 | + DO_FEATURE_MATRIX: true |
| 69 | + run: ./contrib/test.sh |
| 70 | + |
| 71 | + Fuzz: |
| 72 | + name: Fuzztests - 1.58.0 toolchain |
| 73 | + runs-on: ubuntu-latest |
| 74 | + strategy: |
| 75 | + fail-fast: false |
| 76 | + steps: |
| 77 | + - name: Checkout Crate |
| 78 | + uses: actions/checkout@v3 |
| 79 | + - name: Checkout Toolchain |
| 80 | + uses: dtolnay/rust-toolchain@1.58.0 |
23 | 81 | - name: Install test dependencies |
24 | | - run: sudo apt-get install -y binutils-dev libunwind8-dev |
| 82 | + run: sudo apt-get update -y && sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc libiberty-dev |
| 83 | + - name: Running test script |
| 84 | + env: |
| 85 | + DO_DOCS: false |
| 86 | + DO_DOCSRS: false |
| 87 | + DO_FUZZ: true |
| 88 | + DO_INTEGRATION: false |
| 89 | + DO_LINT: false |
| 90 | + DO_FEATURE_MATRIX: false |
| 91 | + run: ./contrib/test.sh |
| 92 | + |
| 93 | + Integration: |
| 94 | + name: Integration tests - stable |
| 95 | + runs-on: ubuntu-latest |
| 96 | + strategy: |
| 97 | + fail-fast: false |
| 98 | + steps: |
25 | 99 | - name: Checkout Crate |
26 | | - uses: actions/checkout@v2 |
| 100 | + uses: actions/checkout@v3 |
27 | 101 | - name: Checkout Toolchain |
28 | | - uses: actions-rs/toolchain@v1 |
29 | | - with: |
30 | | - profile: minimal |
31 | | - toolchain: ${{ matrix.rust }} |
32 | | - override: true |
| 102 | + uses: dtolnay/rust-toolchain@stable |
33 | 103 | - name: Running test script |
34 | | - env: ${{ matrix.env }} |
| 104 | + env: |
| 105 | + DO_DOCS: false |
| 106 | + DO_DOCSRS: false |
| 107 | + DO_FUZZ: false |
| 108 | + DO_INTEGRATION: true |
| 109 | + DO_LINT: false |
| 110 | + DO_FEATURE_MATRIX: false |
35 | 111 | run: ./contrib/test.sh |
| 112 | + |
0 commit comments