Skip to content

Commit

Permalink
Separated COPR build actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikReider committed May 4, 2024
1 parent ed370d8 commit ef55024
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build RPMs
name: Build SceneFX RPM

on:
push:
Expand All @@ -14,13 +14,8 @@ on:
workflow_dispatch:

jobs:
RPM-build:
strategy:
fail-fast: false
matrix:
pkgname: [ swayfx, scenefx ]

name: Test PKGBUILD ${{matrix.pkgname}}
RPM-build-scenefx:
name: Build RPM scenefx
container: fedora:latest
runs-on: ubuntu-latest
steps:
Expand All @@ -35,16 +30,16 @@ jobs:

- name: Download RPM Spec sources
run: |
cd COPR/${{matrix.pkgname}}
spectool -g ./${{matrix.pkgname}}.rpkg.spec
cd COPR/scenefx
spectool -g ./scenefx.rpkg.spec
- name: Install build dependencies
run: |
cd COPR/${{matrix.pkgname}}
dnf -y builddep ./${{matrix.pkgname}}.rpkg.spec
cd COPR/scenefx
dnf -y builddep ./scenefx.rpkg.spec
- name: Build RPM
run: |
cd COPR/${{matrix.pkgname}}
cd COPR/scenefx
mkdir -p out
rpkg local --out `pwd`/out
46 changes: 46 additions & 0 deletions .github/workflows/copr_build_swayfx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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
2 changes: 1 addition & 1 deletion .github/workflows/copr_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

container: fedora:latest
runs-on: ubuntu-latest
needs: RPM-build
needs: RPM-build-${{matrix.pkgname}}
steps:
- name: Install API token for copr-cli
env:
Expand Down

0 comments on commit ef55024

Please sign in to comment.