|
9 | 9 | pull_request: |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - required: |
| 12 | + build: |
13 | 13 | runs-on: ubuntu-latest |
14 | | - name: ubuntu / ${{ matrix.toolchain }} |
| 14 | + name: Build Ubuntu / ${{ matrix.toolchain }} |
| 15 | + strategy: |
| 16 | + matrix: |
| 17 | + toolchain: [stable, beta] |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v3 |
| 20 | + with: |
| 21 | + submodules: true |
| 22 | + - name: Install ${{ matrix.toolchain }} |
| 23 | + uses: dtolnay/rust-toolchain@master |
| 24 | + with: |
| 25 | + toolchain: ${{ matrix.toolchain }} |
| 26 | + - name: cargo generate-lockfile |
| 27 | + if: hashFiles('Cargo.lock') == '' |
| 28 | + run: cargo generate-lockfile |
| 29 | + - name: cargo build |
| 30 | + run: cargo build |
| 31 | + - name: cargo build release |
| 32 | + run: cargo build --release |
| 33 | + |
| 34 | + test: |
| 35 | + runs-on: ubuntu-latest |
| 36 | + name: Test Ubuntu / ${{ matrix.toolchain }} |
15 | 37 | strategy: |
16 | 38 | matrix: |
17 | 39 | toolchain: [stable, beta] |
|
32 | 54 | - name: cargo test --doc |
33 | 55 | run: cargo test --locked --all-features --doc | grep 'Missing FALCON_CLIENT_ID environment variable.' |
34 | 56 |
|
| 57 | + nightly: |
| 58 | + name: Rust nightly |
| 59 | + runs-on: ubuntu-latest |
| 60 | + steps: |
| 61 | + - uses: actions/checkout@v3 |
| 62 | + - uses: dtolnay/rust-toolchain@nightly |
| 63 | + with: |
| 64 | + components: rust-src |
| 65 | + - run: | |
| 66 | + cargo test --lib --bins --examples --benches |
| 67 | + - run: | |
| 68 | + # We expect doc example to fail without Falcon Credentials |
| 69 | + cargo test --doc | grep 'Missing FALCON_CLIENT_ID environment variable.' |
| 70 | +
|
35 | 71 | minimal: |
36 | 72 | runs-on: ubuntu-latest |
37 | 73 | name: ubuntu / stable / minimal-versions |
|
70 | 106 | - name: cargo generate-lockfile |
71 | 107 | if: hashFiles('Cargo.lock') == '' |
72 | 108 | run: cargo generate-lockfile |
| 109 | + - name: cargo build |
| 110 | + run: cargo build |
| 111 | + - name: cargo build release |
| 112 | + run: cargo build --release |
73 | 113 | - name: cargo test |
74 | 114 | run: cargo test --locked --all-features --all-targets |
0 commit comments