Compare commits

..

2 commits

Author SHA1 Message Date
ad50a8679f
add edge
All checks were successful
/ build-test-320 (pull_request) Successful in 15m21s
/ build-test-319 (pull_request) Successful in 15m30s
/ build-test-edge (pull_request) Successful in 12m58s
2024-08-22 16:19:40 -04:00
a789b33382
forgejo-ci: add 319 tests
All checks were successful
/ build-test (pull_request) Successful in 15m37s
2024-08-22 16:18:04 -04:00
4 changed files with 84 additions and 2 deletions

View file

@ -76,5 +76,5 @@ jobs:
verbose: true
token: "${{ secrets.FORGE_REPO_TOKEN }}"
release-dir: ./package
release-notes: "For download of template through `qvm-template`, please use RPM repo available via https://ayakael.net/forge/-/packages/rpm/qubes-template-alpine320"
release-notes: "For download of template through DNF, please go to https://ayakael.net/forge/-/packages/rpm/qubes-template-alpine320"

View file

@ -0,0 +1,41 @@
on:
pull_request:
types: [ assigned, opened, synchronize, reopened ]
jobs:
build-test-319:
runs-on: x86_64
container:
image: alpine:3.20
env:
QUBES_REL: r4.2
DIST: alpine319
steps:
- name: Environment setup
run: |
apk add rpm wget coreutils eudev e2fsprogs xen doas sudo curl nodejs git alpine-sdk fuse2fs patch findutils grep
cd /etc/apk/keys
curl -JO https://ayakael.net/api/packages/forge/alpine/key
- name: Repo pull
uses: actions/checkout@v4
with:
fetch-depth: 500
- name: RPM build
run: |
git clone https://github.com/QubesOS/qubes-builder
mkdir qubes-builder/qubes-src
ln -s $GITHUB_WORKSPACE qubes-builder/qubes-src/builder-alpine
cp builder.conf qubes-builder/.
git clone https://github.com/QubesOS/qubes-linux-template-builder qubes-builder/qubes-src/linux-template-builder
patch -d qubes-builder/qubes-src/linux-template-builder -p1 -i $GITHUB_WORKSPACE/.forgejo/patches/linux-template-builder_use-fuse.patch
echo "%define _arch x86_64" >> qubes-builder/qubes-src/linux-template-builder/templates.spec
echo "4.2.0" > qubes-builder/qubes-src/linux-template-builder/version
sed "s|DISTS_VM :.*|DISTS_VM := $DIST|" -i ./qubes-builder/builder.conf
cd qubes-builder
make linux-template-builder
cp qubes-src/linux-template-builder/rpm/noarch/qubes-template-*.rpm $GITHUB_WORKSPACE/.
- name: Package upload
uses: forgejo/upload-artifact@v3
with:
name: package
path: qubes-template-*.rpm

View file

@ -3,7 +3,7 @@ on:
types: [ assigned, opened, synchronize, reopened ]
jobs:
build-test:
build-test-320:
runs-on: x86_64
container:
image: alpine:3.20

View file

@ -0,0 +1,41 @@
on:
pull_request:
types: [ assigned, opened, synchronize, reopened ]
jobs:
build-test-edge:
runs-on: x86_64
container:
image: alpine:3.20
env:
QUBES_REL: r4.2
DIST: alpineedge
steps:
- name: Environment setup
run: |
apk add rpm wget coreutils eudev e2fsprogs xen doas sudo curl nodejs git alpine-sdk fuse2fs patch findutils grep
cd /etc/apk/keys
curl -JO https://ayakael.net/api/packages/forge/alpine/key
- name: Repo pull
uses: actions/checkout@v4
with:
fetch-depth: 500
- name: RPM build
run: |
git clone https://github.com/QubesOS/qubes-builder
mkdir qubes-builder/qubes-src
ln -s $GITHUB_WORKSPACE qubes-builder/qubes-src/builder-alpine
cp builder.conf qubes-builder/.
git clone https://github.com/QubesOS/qubes-linux-template-builder qubes-builder/qubes-src/linux-template-builder
patch -d qubes-builder/qubes-src/linux-template-builder -p1 -i $GITHUB_WORKSPACE/.forgejo/patches/linux-template-builder_use-fuse.patch
echo "%define _arch x86_64" >> qubes-builder/qubes-src/linux-template-builder/templates.spec
echo "4.2.0" > qubes-builder/qubes-src/linux-template-builder/version
sed "s|DISTS_VM :.*|DISTS_VM := $DIST|" -i ./qubes-builder/builder.conf
cd qubes-builder
make linux-template-builder
cp qubes-src/linux-template-builder/rpm/noarch/qubes-template-*.rpm $GITHUB_WORKSPACE/.
- name: Package upload
uses: forgejo/upload-artifact@v3
with:
name: package
path: qubes-template-*.rpm