Skip to content

Commit 02af397

Browse files
authored
Clean up the coverage workflow
1 parent 0132f92 commit 02af397

File tree

1 file changed

+10
-25
lines changed

1 file changed

+10
-25
lines changed

Diff for: .github/workflows/coverage.yml

+10-25
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88
env:
99
RUST_BACKTRACE: 1
1010
PRUSTI_ASSERT_TIMEOUT: 60000
11-
# Disable incremental builds to reduce disk usage
12-
CARGO_INCREMENTAL: 0
1311
# The /mnt disk has 66 GB of free space; more than the working directory
1412
COVERAGE_PATH: /mnt/prusti-coverage
1513

@@ -29,6 +27,11 @@ jobs:
2927
- name: Set up the environment
3028
run: python x.py setup
3129

30+
- name: Cache cargo
31+
uses: Swatinem/rust-cache@v2
32+
with:
33+
shared-key: "shared"
34+
3235
- name: Enable collection of source-based coverage
3336
run: |
3437
# Prepare directory
@@ -44,36 +47,18 @@ jobs:
4447
- name: Build with cargo
4548
run: python x.py build --all
4649

47-
- name: Report disk usage
48-
run: df -h
49-
50-
- name: Report disk usage
51-
run: df -h
52-
53-
- name: Run quick cargo tests
54-
run: python x.py test --all quick
55-
56-
- name: Report disk usage
57-
run: df -h
50+
- name: Build prusti-contracts-test
51+
run: |
52+
cd prusti-contracts/prusti-contracts-test/
53+
cargo build
5854
59-
- name: Rerun quick cargo tests, enabling debug dumps to cover more code
55+
- name: Run quick cargo tests, enabling debug dumps to cover more code
6056
run: python x.py test quick
6157
env:
6258
PRUSTI_DUMP_DEBUG_INFO: true
6359
PRUSTI_DUMP_VIPER_PROGRAM: true
6460
PRUSTI_IGNORE_REGIONS: true
6561

66-
- name: Report disk usage
67-
run: df -h
68-
69-
- name: Check prusti-contracts
70-
run: |
71-
cd prusti-contracts/prusti-contracts-test/
72-
cargo build
73-
74-
- name: Report disk usage
75-
run: df -h
76-
7762
- name: Run cargo tests
7863
run: python x.py test --all
7964

0 commit comments

Comments
 (0)