Skip to content

Commit 1998789

Browse files
authored
ci: use Tarpaulin Docker image (#175)
Installing Tarpaulin via `cargo install` will by default use the Rust version specified in the `rust-toolchain.toml` file. Tarpaulin might need a newer version to build than that and fail to build. Instead use the docker image that is provided by Tarpaulin.
1 parent 6a13cb9 commit 1998789

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,15 @@ jobs:
6767
coverage:
6868
name: Code Coverage
6969
runs-on: ubuntu-latest
70+
container:
71+
image: xd009642/tarpaulin:0.32.8
72+
options: --security-opt seccomp=unconfined
7073
steps:
7174
- name: Checkout Sources
7275
uses: actions/checkout@v4
7376

7477
- name: Generate Code Coverage
75-
run: |
76-
cargo install cargo-tarpaulin
77-
cargo tarpaulin --all-features --out Xml
78+
run: cargo tarpaulin --all-features --out Xml
7879

7980
- name: Upload Code Coverage
8081
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)