-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (50 loc) · 2.27 KB
/
archiso.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
49
50
51
52
53
54
55
56
57
58
59
name: Build ArchISO
on:
# push:
workflow_dispatch:
# schedule:
# - cron: '0 0 */7 * *'
jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux:latest
options: --privileged
steps:
- name: Checkout files
uses: actions/checkout@v4
- name: Edit pacman and makepkg config
run: |
sed -i 's|#ParallelDownloads.*|ParallelDownloads = 20|' /etc/pacman.conf
sed -i 's|#MAKEFLAGS.*|MAKEFLAGS="j4"|' /etc/makepkg.conf
- name: Init pacman keyring
run: pacman-key --init
- name: Update mirrorlist
run: echo -e 'Server = https://mirror.osbeck.com/archlinux/$repo/os/$arch\nServer = https://cloudflaremirrors.com/archlinux/$repo/os/$arch\nServer = https://archlinux.mailtunnel.eu/$repo/os/$arch' > /etc/pacman.d/mirrorlist
- name: Add chaotic-aur repo
run: |
pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
pacman-key --lsign-key 3056513887B78AEB
pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' --noconfirm
echo -e '\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist' >> /etc/pacman.conf
- name: Add archzfs repo
run: |
pacman-key -r DDF7DB817396A49B2A2723F7403BD972F75D9D76
pacman-key --lsign-key DDF7DB817396A49B2A2723F7403BD972F75D9D76
echo -e '\n[archzfs-testing]\nServer = https://archzfs.com/$repo/$arch\nServer = https://zxcvfdsa.com/archzfs/$repo/$arch' >> /etc/pacman.conf
- name: Build ArchISO
run: |
pacman -Syyu archiso dash paru base-devel --noconfirm
time ./scripts/build.sh
- name: Create release tags
run: |
echo "filePath=$(find archiso-base/out -type f)" >> $GITHUB_ENV
echo "fileName=$(find archiso-base/out -type f -exec basename {} \;)" >> $GITHUB_ENV
echo "fileTag=$(grep 'Version' scripts/build.sh | cut -d ' ' -f 3)" >> $GITHUB_ENV
echo ${{ env.filetag }}
- name: Release ArchISO
uses: softprops/action-gh-release@v1
with:
files: ${{ env.filePath }}
name: ${{ env.fileName }}
tag_name: ${{ env.fileTag }}