summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authortranch <tranch.xiao@gmail.com>2026-07-13 00:55:21 +0800
committertranch <tranch.xiao@gmail.com>2026-07-13 00:55:21 +0800
commit80dc6c0ccafc54d48b862b46261e12b53675b77f (patch)
tree81ae588dab72f15f55011c3a716a9559c84ae5b1 /.github/workflows
parent81027c19c3f10e64d095e74b1e3387e8daf4e15f (diff)
downloadAeroCore-OS-80dc6c0ccafc54d48b862b46261e12b53675b77f.tar.gz
AeroCore-OS-80dc6c0ccafc54d48b862b46261e12b53675b77f.zip
Use BTRFS storage for image builds
Mount /var/lib/containers on the larger runner disk before building so rpm-ostree rechunk has enough space for bootc images.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml25
1 files changed, 22 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e542a89..0b1a54b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -27,12 +27,31 @@ jobs:
steps:
# These stage versions are pinned by https://github.com/renovatebot/renovate
+ - name: Show disk space
+ run: sudo df -h
+
+ - name: Check if /mnt is there
+ id: check-mnt
+ run: |
+ if sudo mountpoint /mnt; then
+ echo "mnt_is_there=1" >> "$GITHUB_OUTPUT"
+ else
+ echo "mnt_is_there=0" >> "$GITHUB_OUTPUT"
+ fi
+
+ - name: Free Disk Space
+ if: ${{ steps.check-mnt.outputs.mnt_is_there == '1' }}
+ uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
+
+ - name: Mount BTRFS for podman storage
+ if: ${{ steps.check-mnt.outputs.mnt_is_there == '1' }}
+ uses: ublue-os/container-storage-action@main
+ with:
+ target-dir: /var/lib/containers
+
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- - name: Maximize build space
- uses: ublue-os/remove-unwanted-software@695eb75bc387dbcd9685a8e72d23439d8686cba6
-
- name: Install just
uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 #v4.0.0