forgejo-ci: add logics to be able to build for different qubes/alpine releases from workflow
This commit is contained in:
parent
a8b3f4c64d
commit
57cc5b49b3
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,9 @@ jobs:
|
|||
runs-on: x86_64
|
||||
container:
|
||||
image: alpine:3.20
|
||||
env:
|
||||
QUBES_REL: r4.2
|
||||
DIST: alpine320
|
||||
steps:
|
||||
- name: Environment setup
|
||||
run: |
|
||||
|
@ -26,6 +29,8 @@ jobs:
|
|||
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/.
|
||||
|
|
Loading…
Reference in a new issue