forgejo-ci: add logics to be able to build for different qubes/alpine releases from workflow

This commit is contained in:
Antoine Martin 2024-08-22 13:32:26 -04:00
parent a8b3f4c64d
commit 57cc5b49b3
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -7,6 +7,9 @@ jobs:
runs-on: x86_64 runs-on: x86_64
container: container:
image: alpine:3.20 image: alpine:3.20
env:
QUBES_REL: r4.2
DIST: alpine320
steps: steps:
- name: Environment setup - name: Environment setup
run: | run: |
@ -26,6 +29,8 @@ jobs:
git clone https://github.com/QubesOS/qubes-linux-template-builder qubes-builder/qubes-src/linux-template-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 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 "%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 cd qubes-builder
make linux-template-builder make linux-template-builder
cp qubes-src/linux-template-builder/rpm/noarch/qubes-template-*.rpm $GITHUB_WORKSPACE/. cp qubes-src/linux-template-builder/rpm/noarch/qubes-template-*.rpm $GITHUB_WORKSPACE/.