-
Notifications
You must be signed in to change notification settings - Fork 4
112 lines (94 loc) · 2.8 KB
/
Copy pathcopr_build.yml
File metadata and controls
112 lines (94 loc) · 2.8 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
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-SceneFX-build:
strategy:
fail-fast: false
matrix:
pkgname: [ scenefx-0.2, scenefx-0.3, scenefx ]
name: Build RPM ${{matrix.pkgname}}
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: ${{matrix.pkgname}} Download RPM Spec sources
run: |
cd COPR/${{matrix.pkgname}}
spectool -g ./${{matrix.pkgname}}.rpkg.spec
- name: ${{matrix.pkgname}} Install build dependencies
run: |
cd COPR/${{matrix.pkgname}}
dnf -y builddep ./${{matrix.pkgname}}.rpkg.spec
- name: ${{matrix.pkgname}} Build RPM
run: |
cd COPR/${{matrix.pkgname}}
mkdir -p out
rpkg local --out `pwd`/out
- name: ${{matrix.pkgname}} Install RPMs
run: |
cd COPR/${{matrix.pkgname}}
dnf -y install ./out/*/*.rpm
RPM-SwayFX-build:
name: Build RPM swayfx
container: fedora:latest
runs-on: ubuntu-latest
env:
scenefx_version: "scenefx"
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_version
spectool -g ./$scenefx_version.rpkg.spec
- name: SceneFX Install build dependencies
run: |
cd COPR/$scenefx_version
dnf -y builddep ./$scenefx_version.rpkg.spec
- name: SceneFX Build RPM
run: |
cd COPR/$scenefx_version
mkdir -p out
rpkg local --out `pwd`/out
- name: SceneFX Install RPMs
run: |
cd COPR/$scenefx_version
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
- name: SwayFX Install RPMs
run: |
cd COPR/swayfx
dnf -y install ./out/*/*.rpm ./out/noarch/*.rpm