Files
HyprlandRPM/.gitea/workflows/build-hyprwayland-scanner.yml
Eriq Taing cdb0f191b9
Some checks failed
Build hyprwayland-scanner / Build and push image (push) Failing after 25s
Temp add workspace and current directory
2025-11-27 15:35:30 -05:00

46 lines
1.2 KiB
YAML

name: Build hyprwayland-scanner
on:
push:
branches:
- main
paths:
- .gitea/workflows/build-hyprwayland-scanner.yml
- "hyprwayland-scanner/**"
workflow_dispatch:
jobs:
build_push:
name: Build and push image
runs-on: ubuntu-latest
steps:
- name: Setup environment
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y podman skopeo iptables
echo "List workspace directory"
ls ${GITEA_WORKSPACE}
echo "List current directory"
ls .
mkdir -p ${GITEA_WORKSPACE}/rpmbuild/{RPMS,SPECS}
cp ./hyprwayland-scanner/hyprwayland-scanner.spec ${GITEA_WORKSPACE}/rpmbuild/SPECS
- name: Build RPM
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
run: |
echo "Home directory"
ls ~
echo "Current directory"
ls .
echo "Supposed rpm location"
ls ~/buildrpm/RPMS