-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (52 loc) · 2.07 KB
/
ci.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: ⚙️ Continuous update 📦
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0" #At 00:00 UTC on Sunday every Week
jobs:
update_rebuild_and_release:
name: portarch-update
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: main
filter: "blob:none"
- name: Install deps
run: |
sudo sh -c 'apt update && apt install zsync -y'
sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns <<<0
- name: Bootstrap RunImage
run: |
set -x ; set -e
mkdir -p release && cd release||exit 1
curl -LO https://github.com/VHSgunzo/portarch/releases/download/continuous/portarch
chmod +x portarch
./portarch --runtime-extract
rm -f portarch
./RunDir/Run rim-update
./RunDir/Run rim-shrink --back --docs --locales --pkgcache --pycache --strip
./RunDir/Run rim-pkgls > pkg_list-portarch.txt
./RunDir/Run rim-build -d -b 22 -z -c 22 portarch
rm -rf RunDir
sha256sum_portarch="$(sha256sum portarch)"
zsyncmake portarch
echo "\
-----------------------------------------------------------------------------------------------------------------------------
* [portarch](https://github.com/VHSgunzo/portarch/releases/download/continuous/portarch) | [pkg_list-portarch.txt](https://github.com/VHSgunzo/portarch/releases/download/continuous/pkg_list-portarch.txt)
-----------------------------------------------------------------------------------------------------------------------------
## sha256sum:
\`\`\`
${sha256sum_portarch}
\`\`\`" > ../RELEASE_NOTE.md
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: "continuous"
prerelease: false
draft: false
body_path: "RELEASE_NOTE.md"
files: release/*