Skip to content

COPR

COPR #6

Workflow file for this run

name: Build RPMs
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:
name: Build RPM swayfx
container: fedora:latest
runs-on: ubuntu-latest
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: 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/swayfx
spectool -g ./swayfx.rpkg.spec
- name: SwayFX Install build dependencies
run: |
cd COPR/swayfx
dnf -y builddep ./swayfx.rpkg.spec
- name: SwayFX Build RPM
run: |
cd COPR/swayfx
mkdir -p out
rpkg local --out `pwd`/out