-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (66 loc) · 1.74 KB
/
ci.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
name: ci
on: [push, pull_request, merge_group]
jobs:
lint:
runs-on: ubuntu-latest
container:
image: registry.fedoraproject.org/fedora:37
steps:
- run: dnf install -y git make
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install dependencies
run: |
make test-deps
- name: Run linters
run: |
git config --global --add safe.directory '*'
make lint
build-rpm:
runs-on: ubuntu-latest
container:
image: registry.fedoraproject.org/fedora:37
steps:
- run: dnf install -y git make
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install dependencies
run: |
make build-deps
- name: Build RPM
run: |
git config --global --add safe.directory '*'
make build-rpm
- name: Check reproducibility
run: |
make test-deps
make reprotest
- uses: actions/upload-artifact@v4
id: upload
with:
name: rpm-build
path: rpm-build/RPMS/noarch/*.rpm
if-no-files-found: error
test-rpm:
runs-on: ubuntu-latest
container:
image: registry.fedoraproject.org/fedora:37
needs: build-rpm
steps:
- run: dnf install -y git make
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install dependencies
run: |
git config --global --add safe.directory '*'
make test-deps
- uses: actions/download-artifact@v4
with:
pattern: "*fc37.noarch.rpm"
- name: Install RPM and run smoketest
run: |
make smoketest RPM=rpm-build/*.rpm