Separated COPR build actions #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build SwayFX RPM | ||
on: | ||
push: | ||
paths: | ||
- COPR/** | ||
branches: [ main ] | ||
pull_request: | ||
paths: | ||
- COPR/** | ||
branches: [ main ] | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
RPM-build-swayfx: | ||
name: Build RPM swayfx | ||
container: fedora:latest | ||
runs-on: ubuntu-latest | ||
uses: wlrfx/aur-packages/.github/workflows/copr_build_scenefx.yml@main | ||
steps: | ||
- name: Install tooling for source RPM build | ||
run: | | ||
dnf -y install rpkg @rpm-development-tools 'dnf-command(builddep)' | ||
- name: Check out sources | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Download RPM Spec sources | ||
run: | | ||
cd COPR/swayfx | ||
spectool -g ./swayfx.rpkg.spec | ||
- name: Install build dependencies | ||
run: | | ||
cd COPR/swayfx | ||
dnf -y builddep ./swayfx.rpkg.spec | ||
- name: Build RPM | ||
run: | | ||
cd COPR/swayfx | ||
mkdir -p out | ||
rpkg local --out `pwd`/out |