Skip to content

Commit

Permalink
Clean up the coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoli authored Feb 29, 2024
1 parent 0132f92 commit 02af397
Showing 1 changed file with 10 additions and 25 deletions.
35 changes: 10 additions & 25 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
env:
RUST_BACKTRACE: 1
PRUSTI_ASSERT_TIMEOUT: 60000
# Disable incremental builds to reduce disk usage
CARGO_INCREMENTAL: 0
# The /mnt disk has 66 GB of free space; more than the working directory
COVERAGE_PATH: /mnt/prusti-coverage

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

- name: Cache cargo
uses: Swatinem/rust-cache@v2
with:
shared-key: "shared"

- name: Enable collection of source-based coverage
run: |
# Prepare directory
Expand All @@ -44,36 +47,18 @@ jobs:
- name: Build with cargo
run: python x.py build --all

- name: Report disk usage
run: df -h

- name: Report disk usage
run: df -h

- name: Run quick cargo tests
run: python x.py test --all quick

- name: Report disk usage
run: df -h
- name: Build prusti-contracts-test
run: |
cd prusti-contracts/prusti-contracts-test/
cargo build
- name: Rerun quick cargo tests, enabling debug dumps to cover more code
- name: Run quick cargo tests, enabling debug dumps to cover more code
run: python x.py test quick
env:
PRUSTI_DUMP_DEBUG_INFO: true
PRUSTI_DUMP_VIPER_PROGRAM: true
PRUSTI_IGNORE_REGIONS: true

- name: Report disk usage
run: df -h

- name: Check prusti-contracts
run: |
cd prusti-contracts/prusti-contracts-test/
cargo build
- name: Report disk usage
run: df -h

- name: Run cargo tests
run: python x.py test --all

Expand Down

0 comments on commit 02af397

Please sign in to comment.