Skip to content

Commit

Permalink
Switch to nightly toolchain to support test output. Fix publish test …
Browse files Browse the repository at this point in the history
…result permissions.
  • Loading branch information
GJKrupa committed Oct 4, 2023
1 parent 9b716b9 commit 9dded4b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ on:
paths-ignore:
- '**.md'

permissions:
checks: write
pull-requests: write

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off
RUSTFLAGS: -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort
RUSTDOCFLAGS: -Cpanic=abort

jobs:
Expand All @@ -26,7 +30,7 @@ jobs:
with:
profile: minimal
override: true
toolchain: stable
toolchain: nightly

- name: Cache dependencies
uses: Swatinem/rust-cache@v1
Expand All @@ -37,7 +41,7 @@ jobs:
- name: Test
run: |
cargo install cargo2junit grcov rust-covfix;
cargo test $CARGO_OPTIONS -- --format json | cargo2junit > results.xml;
cargo test $CARGO_OPTIONS -- -Z unstable-options --format json | cargo2junit > results.xml;
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand Down

0 comments on commit 9dded4b

Please sign in to comment.