From d399c24b024a9d86c4db22e97b918198934d6604 Mon Sep 17 00:00:00 2001 From: Celestia Ludenberg Date: Sat, 27 Jun 2026 19:05:03 +0200 Subject: [PATCH] CI: mount tmpfs as step instead of container --tmpfs --tmpfs with size= in container options may not parse correctly on GH Actions. Mount tmpfs as a run step for full control. --- .github/workflows/build.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 860bb52..29e748a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest container: image: artixlinux/artixlinux:base - options: --privileged --tmpfs /var/lib/artools/buildiso:exec,suid,dev,size=12G + options: --privileged steps: - uses: actions/checkout@v4 @@ -53,15 +53,11 @@ jobs: lsblk free -h - - name: Create swap space + - name: Setup tmpfs for build directory run: | - dd if=/dev/zero of=/swapfile bs=1M count=12288 - chmod 600 /swapfile - LOOPDEV=$(losetup -f) - losetup "$LOOPDEV" /swapfile - mkswap "$LOOPDEV" - swapon "$LOOPDEV" - swapon --show + mkdir -p /var/lib/artools/buildiso + mount -t tmpfs -o size=12G,exec,suid,dev tmpfs /var/lib/artools/buildiso + mount | grep buildiso - name: Build ISO run: |