-
Notifications
You must be signed in to change notification settings - Fork 11
64 lines (53 loc) · 1.93 KB
/
pkg.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
name: Build packages
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLORS: always
jobs:
build-rpm-pkgs:
name: Build rpm packages
runs-on: ubuntu-latest
container:
image: fedora:latest
# Required by `mock`:
### INFO: It seems that you run Mock in a Docker container.
### Mock though uses container tooling itself (namely Podman) for downloading bootstrap image.
### This might require you to run Mock in 'docker run --privileged'.
options: --privileged
# It does not seem to be necessary (CI run without it was successful).
# However, without it, there appear some errors during `mock` execution.
# I've found the solution to these errors here: https://github.com/containers/buildah/issues/3666.
# They are related to podman, which is used by `mock` under the hood.
volumes:
- /var/lib/containers:/var/lib/containers
strategy:
matrix:
dist-version: [rocky-9-x86_64, fedora-40-x86_64]
fail-fast: false
steps:
# See: https://github.com/actions/checkout/issues/363
# An issue related to GH actions containers
- name: Install git and update safe directory
run: |
dnf update -y
dnf install -y git
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Checkout
uses: actions/checkout@v4
- name: Build rpm package for ${{ matrix.dist-version }}
run: ./dist/redhat/build_rpm.sh --target ${{ matrix.dist-version }}
build-deb-pkgs:
name: Build deb packages
runs-on: ubuntu-latest
strategy:
matrix:
dist-version: [jammy, noble]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build deb package for ${{ matrix.dist-version }}
run: ./dist/debian/build_deb.sh --target ${{ matrix.dist-version }}