Skip to content

Commit

Permalink
Fix CI running wrong cargo version (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
gferon authored Oct 17, 2024
1 parent ae55eb8 commit 701ee93
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +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@stable
- id: rustc
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}

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

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

- name: Run tests
uses: actions-rs/cargo@v1
if: matrix.toolchain != 'nightly'
with:
command: test
args: --all-targets --no-fail-fast

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets
run: cargo +${{ steps.rustc.outputs.name }} test --all-targets --no-fail-fast

- name: Run tests with code coverage
uses: actions-rs/cargo@v1
if: matrix.toolchain == 'nightly'
with:
command: test
args: --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 701ee93

Please sign in to comment.