-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (43 loc) · 1.23 KB
/
rpm-build.yaml
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
name: Packaging for Centos and Fedora
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
container:
image: ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
arch:
- amd64
target:
- "fedora:39"
- "fedora:40"
- "rockylinux:8"
- "rockylinux:9"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install prereq packages
run: ./rpmpkg-setup.sh ${{ matrix.target }}
- name: Build packages
run: ./rpmpkg-build.sh ${{ matrix.target }}
- name: Store packages
run: |
export DIRNAME=`echo ${{ matrix.target }} | tr ':' '_'`
mkdir -p packages/${DIRNAME}
cp ~/rpmbuild/RPMS/x86_64/*.rpm packages/${DIRNAME}/
- name: Run tests
run: |
export DIRNAME=`echo ${{ matrix.target }} | tr ':' '_'`
./run-tests-rpm.sh ${DIRNAME}
- name: Publish packages to cloudsmith
uses: salcock/[email protected]
with:
path: packages/
repo: ${{ secrets.CLOUDSMITH_OWNER }}/libwandio
username: salcock
api_key: ${{ secrets.CLOUDSMITH_API_KEY }}