Skip to content

Commit

Permalink
Update ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
gferon authored Oct 17, 2024
1 parent e0d3e96 commit b8d7b09
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,24 @@ jobs:
sudo apt-get update
sudo apt-get install -y libprotobuf-dev libprotobuf-c-dev protobuf-compiler protobuf-c-compiler
- uses: dtolnay/rust-toolchain@master
- id: rustc
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}

- name: Configure CI cache
uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build --all-targets
run: cargo +${{ steps.rustc.outputs.name }} build --all-targets

- name: Run tests
if: matrix.toolchain != 'nightly'
run: cargo test --all-targets --no-fail-fast
run: cargo +${{ steps.rustc.outputs.name }} test --all-targets --no-fail-fast

- name: Run tests with code coverage
if: matrix.toolchain == 'nightly'
run: cargo test --all-targets --no-fail-fast
run: cargo +${{ steps.rustc.outputs.name }} test --all-targets --no-fail-fast
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
Expand Down

0 comments on commit b8d7b09

Please sign in to comment.