This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update coverage workflow's toolchain
- Loading branch information
Showing
1 changed file
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,16 +11,25 @@ jobs: | |
codecov: | ||
name: Code coverage | ||
runs-on: ubuntu-latest | ||
container: | ||
# See https://github.com/xd009642/tarpaulin/issues/1282 for usage of older nightly revision | ||
image: xd009642/tarpaulin:develop-nightly-2024-02-1 | ||
options: --security-opt seccomp=unconfined | ||
|
||
timeout-minutes: 30 | ||
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install nightly toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly-2024-02-01 | ||
components: tarpaulin | ||
|
||
- name: Set up rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
|
||
- run: | | ||
cargo tarpaulin --verbose --engine llvm --release --out Xml | ||
- name: Run cargo fmt | ||
run: cargo tarpaulin --verbose --engine llvm --release --out Xml | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
|