forked from NSLS2/bitshuffle-rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.19 KB
/
Copy pathbuild.yml
File metadata and controls
54 lines (46 loc) · 1.19 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
---
name: Build RPMs and SRPMs
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: EL${{ matrix.alma_version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
alma_version: [8, 9, 10]
container:
image: almalinux:${{ matrix.alma_version }}
options: --user root
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install config-manager dnf plugin
run: |
dnf install -y 'dnf-command(config-manager)'
- name: On EL8, enable PowerTools repository
if: matrix.alma_version == '8'
run: |
dnf config-manager --set-enabled powertools
- name: On newer EL versions, enable CRB repository
if: matrix.alma_version != '8'
run: |
dnf config-manager --set-enabled crb
- name: Enable EPEL repository
run: |
dnf install -y epel-release
- name: Install dependencies
run: |
dnf install -y hdf5-devel libzstd-devel gcc make rpmdevtools
- name: Build srpm
run: |
make srpm
- name: Build rpm
run: |
make rpm