Skip to content

Commit

Permalink
Merged both RPM building actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikReider committed May 4, 2024
1 parent ed370d8 commit cda41ac
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 15 deletions.
44 changes: 30 additions & 14 deletions .github/workflows/copr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ on:

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

name: Test PKGBUILD ${{matrix.pkgname}}
name: Build RPM swayfx
container: fedora:latest
runs-on: ubuntu-latest
steps:
Expand All @@ -33,18 +28,39 @@ jobs:
with:
fetch-depth: 0

- name: Download RPM Spec sources
- name: SceneFX Download RPM Spec sources
run: |
cd COPR/scenefx
spectool -g ./scenefx.rpkg.spec
- name: SceneFX Install build dependencies
run: |
cd COPR/scenefx
dnf -y builddep ./scenefx.rpkg.spec
- name: SceneFX Build RPM
run: |
cd COPR/scenefx
mkdir -p out
rpkg local --out `pwd`/out
- name: SceneFX Install RPMs
run: |
cd COPR/scenefx
dnf -y install ./out/**/*.rpm
- name: SwayFX Download RPM Spec sources
run: |
cd COPR/${{matrix.pkgname}}
spectool -g ./${{matrix.pkgname}}.rpkg.spec
cd COPR/swayfx
spectool -g ./swayfx.rpkg.spec
- name: Install build dependencies
- name: SwayFX Install build dependencies
run: |
cd COPR/${{matrix.pkgname}}
dnf -y builddep ./${{matrix.pkgname}}.rpkg.spec
cd COPR/swayfx
dnf -y builddep ./swayfx.rpkg.spec
- name: Build RPM
- name: SwayFX Build RPM
run: |
cd COPR/${{matrix.pkgname}}
cd COPR/swayfx
mkdir -p out
rpkg local --out `pwd`/out
1 change: 0 additions & 1 deletion .github/workflows/copr_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:

container: fedora:latest
runs-on: ubuntu-latest
needs: RPM-build
steps:
- name: Install API token for copr-cli
env:
Expand Down

0 comments on commit cda41ac

Please sign in to comment.