Skip to content
This repository was archived by the owner on Jun 10, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ jobs:

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
toolchain: stable
components: llvm-tools-preview

- name: Setup cache
uses: Swatinem/rust-cache@v2
Expand All @@ -158,16 +158,22 @@ jobs:
args: --all-features --no-fail-fast --target ${{ matrix.target }} # target is fix for https://github.com/rust-lang/rust/issues/90056#issuecomment-1242955859
env:
CARGO_INCREMENTAL: "0"
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
RUSTFLAGS: "-Cinstrument-coverage"
RUSTDOCFLAGS: "-Cinstrument-coverage"

# - uses: actions-rs/grcov@v0.1.6
# id: coverage

# - run: mv ${{ steps.coverage.outputs.report }} ${{github.workspace}}/coverage # fix for https://github.com/codecov/codecov-action/issues/537

- uses: actions-rs/grcov@v0.1.6
id: coverage
- name: Install grcov
run: cargo install grcov

- run: mv ${{ steps.coverage.outputs.report }} ${{github.workspace}}/coverage # fix for https://github.com/codecov/codecov-action/issues/537
- name: Run grcov
run: grcov . --binary-path target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov

- uses: codecov/codecov-action@v3
with:
files: ./coverage
files: ./coverage.lcov
fail_ci_if_error: true
flags: ${{ matrix.target }}