8000 chore: add free-disk-space steps to some github actions by evanspearman · Pull Request #586 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8000
12 changes: 12 additions & 0 deletions .github/workflows/ci-linux-kvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ jobs:
runs-on: ubuntu-latest # x86_64; KVM-capable
timeout-minutes: 60
steps:
- name: Free Disk Space
# The full minvmd e2e (build + libkrun prefix + kernel image + rootfs
# image + cargo test) routinely exceeds the ~14 GB free on a fresh
# GitHub-hosted Ubuntu runner. `remove_tool_cache: true` reclaims
# `/opt/hostedtoolcache` (~14 GB); the dtolnay step below reinstalls
# the Rust toolchain we actually need.
uses: endersonmenezes/free-disk-space@v3 # Use @main for latest, @v3 for stable
with:
remove_android: true
remove_dotnet: true
remove_haskell: true
remove_tool_cache: true
- uses: actions/checkout@v6
with:
persist-credentials: false
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/ci-netns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ jobs:
runs-on: ubuntu-latest # x86_64; unprivileged userns + sudo for netns/tap
timeout-minutes: 30
steps:
- name: Free Disk Space
# Headroom for the cargo target dir + rust-cache restore. Builds
# `minimald` + `sandbox2` + `minimald-rpc` test binaries plus the
# WG-gated mesh proof binary; the rust-cache restore alone pulls
# multi-GB of cached `target/`.
uses: endersonmenezes/free-disk-space@v3 # Use @main for latest, @v3 for stable
with:
remove_android: true
remove_dotnet: true
remove_haskell: true
- uses: actions/checkout@v6
with:
persist-credentials: false
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,19 @@ jobs:
timeout-minutes: 45
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Free Disk Space
# Static release build of the full workspace; the cargo target dir
# is the largest in any of the linux jobs. `remove_tool_cache: true`
# is safe even without a `dtolnay/rust-toolchain` step — the
# pre-installed Rust toolchain on ubuntu-latest lives in
# `~/.rustup` + `~/.cargo`, not `/opt/hostedtoolcache`, so
# `rustup target add` below still resolves.
uses: endersonmenezes/free-disk-space@v3 # Use @main for latest, @v3 for stable
with:
remove_android: true
remove_dotnet: true
remove_haskell: true
remove_tool_cache: true
- uses: actions/checkout@v6
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y musl-tools protobuf-compiler
Expand Down
Loading
0