Skip to content

Commit

Permalink
Update, cache trybuild
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Oct 6, 2022
1 parent fb747a1 commit 29dae79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -341,18 +341,20 @@ jobs:
persist-credentials: false

- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@stable

- name: Install cargo-llvm-cov
run: |
curl -LsSf https://github.com/taiki-e/cargo-llvm-cov/releases/latest/download/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz \
| tar xzf - -C ~/.cargo/bin
- name: Cache cargo output
uses: Swatinem/rust-cache@v2

- name: Generate coverage report
run: |
cargo llvm-cov clean --workspace
cargo llvm-cov test --no-report --all-features -- --test-threads=1
cargo llvm-cov test --no-report --tests --all-features -- compile_fail
cargo llvm-cov report --lcov > lcov.txt
env:
RUSTFLAGS: --cfg __ui_tests
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ serde_test = "1.0.126"
quickcheck_macros = "1.0.0"

[target.'cfg(__ui_tests)'.dev-dependencies]
trybuild = "1.0.63"
trybuild = "1.0.68"

[target.'cfg(bench)'.dev-dependencies]
criterion = { version = "0.4.0", default-features = false }
Expand Down

0 comments on commit 29dae79

Please sign in to comment.