Attempt to use podman to build
Some checks failed
Build hyprwayland-scanner / Build and push image (push) Failing after 25s

This commit is contained in:
2025-11-27 15:30:47 -05:00
parent d2f972624c
commit d79135a9c7
2 changed files with 16 additions and 4 deletions

View File

@@ -18,12 +18,17 @@ jobs:
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y skopeo iptables
sudo apt-get install -y podman skopeo iptables
mkdir -p ${GITEA_WORKSPACE}/rpmbuild/{RPMS,SPECS}
cp ./hyprwayland-scanner/hyprwayland-scanner.spec ${GITEA_WORKSPACE}/rpmbuild/SPECS
- name: Build RPM
uses: https://git.hydrosaber.com/hydros/build-rpm@main
with:
spec-file-path: ./hyprwayland-scanner/hyprwayland-scanner.spec
shell: bash
run: |
podman run --rm \
--mount type=bind,src=${GITEA_WORKSPACE}/rpmbuild,dst=/root/rpmbuild \
--mount type=bind,src=entrypoint.sh,dst=/entrypoint.sh \
/entrypoint.sh /root/rpmbuild/SPECS/hyprwayland-scanner.spec
- name: List everything
shell: bash

7
entrypoint.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh -l
dnf -y install rpmdevtools
rpmdev-setuptree
toolbox run rpmdev-spectool -g -C ~/rpmbuild/SOURCES $1
rpmbuild --nodebuginfo --bb $1