-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (35 loc) · 1.15 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
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
strategy:
matrix:
dist-version: [rocky-9-x86_64, fedora-40-x86_64]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update git safe directory config
run: git config --global --add safe.directory $(pwd)
- name: Build rpm package for ${{ matrix.dist-version }}
run: docker run -v $(pwd):$(pwd) -w $(pwd) -t fedora:latest sudo dnf install -y git && git config --global --add safe.directory $(pwd) && ./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 }}