Skip to content

Commit 5f47829

Browse files
committed
fix(ci): free disk space before coverage job
- Remove dotnet/android/ghc to free ~10GB disk space - Exclude verification feature from coverage (tested separately in z3-verification) - Z3 compilation + LLVM instrumentation together exhaust runner disk
1 parent 9ae73f7 commit 5f47829

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,23 @@ jobs:
145145
name: Code Coverage
146146
runs-on: ubuntu-latest
147147
steps:
148+
- name: Free disk space
149+
run: |
150+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
151+
df -h
148152
- uses: actions/checkout@v4
149153
- uses: dtolnay/rust-toolchain@stable
150154
with:
151155
components: llvm-tools-preview
152156
- uses: Swatinem/rust-cache@v2
157+
with:
158+
key: coverage
153159
- name: Install cargo-llvm-cov
154160
uses: taiki-e/install-action@cargo-llvm-cov
155161
- name: Generate coverage
156-
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
162+
# Exclude verification feature - it's tested separately in z3-verification job
163+
# and Z3 compilation + LLVM instrumentation together exhaust disk space
164+
run: cargo llvm-cov --lcov --output-path lcov.info
157165
- name: Upload coverage to Codecov
158166
uses: codecov/codecov-action@v4
159167
with:

0 commit comments

Comments
 (0)