Skip to content

Commit

Permalink
workflow: fix: uses /mnt as it has more storage available
Browse files Browse the repository at this point in the history
  • Loading branch information
sppidy authored Dec 23, 2024
1 parent b3a80fe commit cde668d
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions .github/workflows/mksunnyos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,51 +8,34 @@ on:
required: true
default: 'sunnyos_gnome'


jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Enable debugging
run: |
echo "ACTIONS_RUNNER_DEBUG=true" >> $GITHUB_ENV
echo "ACTIONS_STEP_DEBUG=true" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v3

- name: Set up swap space
run: |
sudo fallocate -l 16G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Monitor resources before build
- name: Use /mnt for Temporary Storage
run: |
free -h
df -h
top -bn1 | head -n 20
mkdir -p /mnt/temp
- name: Build SunnyOS ISO
run: |
docker run --rm --privileged \
-v "$GITHUB_WORKSPACE:/work" \
-v "/tmp/temp:/tmp" \
--memory=16g --memory-swap=32g \
-v "/mnt/temp:/tmp" \
archlinux:latest /bin/bash -c "
pacman -Sy --noconfirm archiso &&
mkarchiso -v -w /tmp/work -o /tmp/out /work/profile
"
- name: Monitor resources after build
run: |
free -h
df -h
- name: Upload ISO artifact
uses: actions/upload-artifact@v3
with:
name: sunnyos-iso
path: /tmp/temp/out/*.iso

path: /mnt/temp/out/*.iso

0 comments on commit cde668d

Please sign in to comment.