-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (34 loc) · 1002 Bytes
/
mksunnyos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build SunnyOS with GNOME ISO
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to build'
required: true
default: 'sunnyos_gnome'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Use /mnt for Temporary Storage
run: |
sudo mkdir -p /mnt/temp
sudo chmod 777 /mnt/temp
- name: Build SunnyOS ISO
run: |
docker run --rm --privileged \
-v "$GITHUB_WORKSPACE:/work" \
-v "/mnt/temp:/tmp" \
archlinux:latest /bin/bash -c "
pacman -Sy --noconfirm archiso &&
mkarchiso -v -w /tmp/work -o /tmp/out /work/profile
"
- name: Upload ISO artifact
uses: actions/upload-artifact@v3
with:
name: sunnyos-iso
path: /mnt/temp/out/*.iso