-
-
Notifications
You must be signed in to change notification settings - Fork 82
61 lines (53 loc) · 3.07 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
60
61
name: Build ArchISO Stable
on:
# push:
workflow_dispatch:
# schedule:
# - cron: '0 0 */7 * *'
jobs:
build:
env:
ATHENA_VERSION: 'rolling'
ISO_VERSION: 'rolling' # It must be the same on profiledef.sh and installation_script
ISO_ARCHITECTURE: 'x86_64'
runs-on: ubuntu-22.04
container:
image: athenaos/base-devel:latest
options: --privileged
steps:
- name: Checkout files
uses: actions/checkout@v3
- name: Set fastest mirrors
run: |
pacman -Syyu --noconfirm reflector
reflector --age 6 --connection-timeout 15 --download-timeout 15 --latest 21 --fastest 21 --threads 21 --sort rate --protocol https --save /etc/pacman.d/mirrorlist
- name: Remove problematic mirrors
run: |
sed -i "/arch.mirror.constant.com/d" /etc/pacman.d/mirrorlist
sed -i "/us.leaseweb.net/d" /etc/pacman.d/mirrorlist
sed -i "/america.mirror.pkgbuild.com/d" /etc/pacman.d/mirrorlist
sed -i "/geo.mirror.pkgbuild.com/d" /etc/pacman.d/mirrorlist
sed -i "/london.mirror.pkgbuild.com/d" /etc/pacman.d/mirrorlist
sed -i "/geo-mirror.chaotic.cx/d" /etc/pacman.d/chaotic-mirrorlist
sed -i "/iad-us-mirror.silky.network/d" /etc/pacman.d/mirrorlist
sed -i "/archlinux.uk.mirror.allworldit.com/d" /etc/pacman.d/mirrorlist
sed -i "/mirror.lty.me/d" /etc/pacman.d/mirrorlist
sed -i "/archlinux.mailtunnel.eu/d" /etc/pacman.d/mirrorlist
sed -i "/pkg.fef.moe/d" /etc/pacman.d/mirrorlist
sed -i "/mirror.cyberbits.eu/d" /etc/pacman.d/mirrorlist
sed -i "/mirror.fra10.de.leaseweb.net/d" /etc/pacman.d/mirrorlist
sed -i "/mirror.ubrco.de/d" /etc/pacman.d/mirrorlist
sed -i "/europe.mirror.pkgbuild.com/d" /etc/pacman.d/mirrorlist
- name: Keyrings and Mirrorlists
run: pacman -Syy --noconfirm archlinux-keyring pacman-mirrorlist athena-keyring athena-mirrorlist blackarch-keyring blackarch-mirrorlist chaotic-keyring chaotic-mirrorlist
- name: Install dependencies
run: pacman -Syyu --noconfirm archiso git openssh rsync sshpass wget
- name: Retrieve Athena ISO
run: git clone https://github.com/Athena-OS/athena-iso
- name: Build ArchISO
run: |
cd athena-iso/installation-scripts
./30-build-the-iso-the-first-time.sh
- name: Upload to SourceForge
run: |
sshpass -p "${{ secrets.SOURCEFORGE_TOKEN }}" rsync -avP -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" $HOME/Athena-Out/athena-${{env.ISO_VERSION}}-${{env.ISO_ARCHITECTURE}}.iso $HOME/Athena-Out/athena-${{env.ISO_VERSION}}-${{env.ISO_ARCHITECTURE}}.iso.md5 $HOME/Athena-Out/athena-${{env.ISO_VERSION}}-${{env.ISO_ARCHITECTURE}}.iso.sha1 $HOME/Athena-Out/athena-${{env.ISO_VERSION}}-${{env.ISO_ARCHITECTURE}}.iso.sha256 $HOME/Athena-Out/athena-${{env.ISO_VERSION}}-${{env.ISO_ARCHITECTURE}}.iso.sha512 ${{ secrets.SOURCEFORGE_USER }}@frs.sourceforge.net:/home/frs/project/athena-iso/${{env.ATHENA_VERSION}}