-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (43 loc) · 1.13 KB
/
copr_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Check build for Fedora.
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:
build:
strategy:
fail-fast: false
matrix:
pkgname: [ swayfx, scenefx ]
name: Test PKGBUILD ${{matrix.pkgname}}
container: fedora:latest
runs-on: ubuntu-latest
steps:
- name: Install tooling for source RPM build
run: |
dnf -y install rpkg git
dnf -y install 'dnf-command(builddep)'
- name: Check out sources
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download RPM Spec sources
run: |
cd COPR/${{matrix.pkgname}}
spectool -g ./${{matrix.pkgname}}.rpkg.spec
- name: Install build dependencies
run: |
cd COPR/${{matrix.pkgname}}
dnf -y builddep ./${{matrix.pkgname}}.rpkg.spec
- name: Build RPM
run: |
cd COPR/${{matrix.pkgname}}
mkdir -p out
rpkg local --out `pwd`/out