This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (42 loc) · 2.3 KB
/
main.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
43
44
45
46
47
48
name: Build snapshot
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: thevakhovske/holoiso:latest
options: --privileged
steps:
- uses: actions/checkout@v2
- name: Prepare pacman keyring
run: |
pacman-key --init
pacman --noconfirm -Sy archlinux-keyring base-devel fakeroot dos2unix wget
find . -type f -print0 | xargs -0 dos2unix
chown -R nobody:nobody .
- name: Install GRUB dependecies
run: |
pacman --noconfirm -S 'git' 'rsync' 'xz' 'freetype2' 'ttf-dejavu' 'python' 'autogen'
pacman --noconfirm -S 'texinfo' 'help2man' 'gettext' 'device-mapper' 'fuse2'
pacman --noconfirm -S sh xz gettext device-mapper breeze-grub
- name: Build Arch package
run: |
su -s /bin/bash nobody -c "makepkg -s --nodeps --skipinteg && mkdir pkgout && mv *.tar.zst pkgout"
- name: Add to arch repository
run: |
su -s /bin/bash nobody -c "wget http://dl.thevakhovske.pw/pacman/holoiso/os/x86_64/holoiso.db -P pkgout"
su -s /bin/bash nobody -c "wget http://dl.thevakhovske.pw/pacman/holoiso/os/x86_64/holoiso.db.tar.gz -P pkgout"
su -s /bin/bash nobody -c "wget http://dl.thevakhovske.pw/pacman/holoiso/os/x86_64/holoiso.db.tar.gz.old -P pkgout"
su -s /bin/bash nobody -c "wget http://dl.thevakhovske.pw/pacman/holoiso/os/x86_64/holoiso.db.tar.xz -P pkgout"
su -s /bin/bash nobody -c "wget http://dl.thevakhovske.pw/pacman/holoiso/os/x86_64/holoiso.files -P pkgout"
su -s /bin/bash nobody -c "wget http://dl.thevakhovske.pw/pacman/holoiso/os/x86_64/holoiso.files.tar.gz -P pkgout"
su -s /bin/bash nobody -c "wget http://dl.thevakhovske.pw/pacman/holoiso/os/x86_64/holoiso.files.tar.gz.old -P pkgout"
su -s /bin/bash nobody -c "wget http://dl.thevakhovske.pw/pacman/holoiso/os/x86_64/holoiso.files.tar.xz -P pkgout"
su -s /bin/bash nobody -c "mv pkgout/*.pkg.tar.zst pkgout/grub2_2.06.r297.holoiso.snapshot$(date +%Y%m%d.%H%M).pkg.tar.zst"
su -s /bin/bash nobody -c "repo-add pkgout/holoiso.db.tar.gz pkgout/*.tar.zst"
- uses: actions/upload-artifact@v2
with:
name: package
path: pkgout/*