forked from radiorabe/freeipa-extending-ldap-schema-and-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.21 KB
/
build_release.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
name: Build release
on:
push:
tags:
- freeipa-nextcloud-*
jobs:
build:
strategy:
matrix:
container: ["fedora:36", "fedora:37", "fedora:38", "fedora:39", "rockylinux:9", "rockylinux:9.3"]
runs-on: ubuntu-latest
container: ${{ matrix.container }}
steps:
- name: Enable EPEL (if rockylinux)
if: "${{ startsWith(matrix.container, 'rockylinux:') }}"
run: dnf install -y epel-release
- name: Install build tools
run: dnf install -y git tito
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install build dependencies
run: dnf builddep -y $GITHUB_WORKSPACE/freeipa-nextcloud.spec
- name: Build rpm
run: |
# Fix for: https://github.com/actions/checkout/issues/766 (git CVE-2022-24765)
git config --global --add safe.directory "$GITHUB_WORKSPACE"
cd $GITHUB_WORKSPACE
tito build --offline --rpm -o .
- name: Test installation of built rpm
run: dnf install -y noarch/*.rpm
- uses: actions/upload-artifact@v2
with:
name: rpms
path: ${{ github.workspace }}/noarch/*.rpm