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.
This commit is contained in:
2026-06-27 19:05:03 +02:00
parent a2e0c9cd5e
commit d399c24b02
+5 -9
View File
@@ -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: |