Add disk space cleanup step for test_riscv/x86 workflows

This commit is contained in:
Qingsong Chen 2026-01-16 07:11:22 +00:00 committed by Tate, Hongliang Tian
parent 8e6406ae35
commit b2b6499466
2 changed files with 40 additions and 0 deletions

View File

@ -13,11 +13,21 @@ jobs:
container:
image: asterinas/asterinas:0.17.0-20260114
options: --device=/dev/kvm --privileged
volumes:
# Map the following directories on the host into the container so that
# the container can remove them to save some precious disk space (~16GB),
# which is quite limited on free-tier Github runners.
- /usr/lib/google-cloud-sdk:/usr/lib/google-cloud-sdk
- /usr/local/lib/android:/usr/local/lib/android
- /usr/share/dotnet:/usr/share/dotnet
strategy:
matrix:
id: ['lint', 'compile', 'usermode_test', 'ktest']
fail-fast: false
steps:
- name: Free disk space
# Remove unused packages from the host to save disk space.
run: rm -rf /usr/lib/google-cloud-sdk/* /usr/local/lib/android/* /usr/share/dotnet/*
- uses: actions/checkout@v4
- name: Run basic tests
uses: ./.github/actions/test
@ -30,6 +40,13 @@ jobs:
container:
image: asterinas/asterinas:0.17.0-20260114
options: --device=/dev/kvm --privileged
volumes:
# Map the following directories on the host into the container so that
# the container can remove them to save some precious disk space (~16GB),
# which is quite limited on free-tier Github runners.
- /usr/lib/google-cloud-sdk:/usr/lib/google-cloud-sdk
- /usr/local/lib/android:/usr/local/lib/android
- /usr/share/dotnet:/usr/share/dotnet
strategy:
matrix:
include:
@ -47,6 +64,9 @@ jobs:
smp: 4
fail-fast: false
steps:
- name: Free disk space
# Remove unused packages from the host to save disk space.
run: rm -rf /usr/lib/google-cloud-sdk/* /usr/local/lib/android/* /usr/share/dotnet/*
- uses: actions/checkout@v4
- name: Run integration tests ${{ (startsWith(matrix.test_id, 'syscall') && 'with LTP') || '' }}
uses: ./.github/actions/test

View File

@ -13,11 +13,21 @@ jobs:
container:
image: asterinas/asterinas:0.17.0-20260114
options: --device=/dev/kvm --privileged
volumes:
# Map the following directories on the host into the container so that
# the container can remove them to save some precious disk space (~16GB),
# which is quite limited on free-tier Github runners.
- /usr/lib/google-cloud-sdk:/usr/lib/google-cloud-sdk
- /usr/local/lib/android:/usr/local/lib/android
- /usr/share/dotnet:/usr/share/dotnet
strategy:
matrix:
id: ['lint', 'compile', 'usermode_test', 'ktest']
fail-fast: false
steps:
- name: Free disk space
# Remove unused packages from the host to save disk space.
run: rm -rf /usr/lib/google-cloud-sdk/* /usr/local/lib/android/* /usr/share/dotnet/*
- uses: actions/checkout@v4
- name: Run basic tests
uses: ./.github/actions/test
@ -30,6 +40,13 @@ jobs:
container:
image: asterinas/asterinas:0.17.0-20260114
options: --device=/dev/kvm --privileged
volumes:
# Map the following directories on the host into the container so that
# the container can remove them to save some precious disk space (~16GB),
# which is quite limited on free-tier Github runners.
- /usr/lib/google-cloud-sdk:/usr/lib/google-cloud-sdk
- /usr/local/lib/android:/usr/local/lib/android
- /usr/share/dotnet:/usr/share/dotnet
strategy:
matrix:
include:
@ -78,6 +95,9 @@ jobs:
smp: 4
fail-fast: false
steps:
- name: Free disk space
# Remove unused packages from the host to save disk space.
run: rm -rf /usr/lib/google-cloud-sdk/* /usr/local/lib/android/* /usr/share/dotnet/*
- uses: actions/checkout@v4
- name: Run integration tests ${{ (startsWith(matrix.test_id, 'syscall') && 'with LTP') || '' }}
uses: ./.github/actions/test