Commit 17765f1a authored by MCMic's avatar MCMic 🎮

Update .gitlab-ci.yml

parent 2b16e70a
Pipeline #43982124 failed
......@@ -3,6 +3,7 @@ image: base/devel:latest
build:
stage: build
before_script:
# Needed for archiso to mount a loop device
- mknod /dev/loop0 -m0660 b 7 0
- mknod /dev/loop1 -m0660 b 7 1
- mknod /dev/loop2 -m0660 b 7 2
......@@ -13,17 +14,27 @@ build:
- mknod /dev/loop7 -m0660 b 7 7
- mknod /dev/loop8 -m0660 b 7 8
- mknod /dev/loop9 -m0660 b 7 9
# Update pacman local database
- pacman -Sy
# Disable autodetect hook to avoid a failure when installing archiso
- sed -i 's/autodetect //' /etc/mkinitcpio.conf
- pacman -S --noconfirm archiso git gtkglext lua52 portaudio openscad sdl
# Install archiso and snis dependencies
- pacman -S --noconfirm archiso git gtkglext lua52 portaudio openscad sdl glew
# Add a non-root user to be able to use makepkg
- useradd -m -p "" -g users -G "adm,log,network,storage,wheel" makeuser
# Make sure this user can use sudo
- echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers
# Avoid an error
- mkdir -p /home/makeuser/.local/share
script:
# Build the ISO
- sudo -u makeuser make
# Move it to the current folder to have a cleaner artifact path
- mv snislive/out/*.iso .
artifacts:
paths:
- snislive/out/*.iso
# Save the ISO in the artifacts
- *.iso
only:
- schedules
- triggers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment