-
-
Notifications
You must be signed in to change notification settings - Fork 104
103 lines (81 loc) · 2.16 KB
/
ci.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: ci
on:
push:
branches:
- master
pull_request:
jobs:
build-debian:
runs-on: ubuntu-20.04
steps:
- name: Update apt db
run: sudo apt update
- name: Install Packagers & Cross-Compiler
run: sudo apt install -y devscripts debhelper gcc-aarch64-linux-gnu
- name: Checkout
uses: actions/checkout@v2
- name: Build & Make Debian Package
run: make package-debian
- name: Upload Results
uses: actions/upload-artifact@v3
with:
name: debpkg
path: out/debian/*
build-tarball:
runs-on: ubuntu-20.04
steps:
- name: Update apt db
run: sudo apt update
- name: Checkout
uses: actions/checkout@v3
- name: Build & Make Tarball
run: make package-tar
- name: Upload Results
uses: actions/upload-artifact@v3
with:
name: tar
path: out/tar/*
build-arch:
runs-on: ubuntu-latest
container:
image: cerebrate/fuckarch:right-in-the-ear
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Permissions fixup
run: sudo chown -R build .
- name: Build Package
run: sudo -u build make package-arch
- name: Upload Results
uses: actions/upload-artifact@v3
with:
name: zst
path: out/arch/*
build-fedora:
strategy:
matrix:
fedora_version: [36] # [35, 36, 37]
runs-on: ubuntu-latest
container:
image: fedora:${{ matrix.fedora_version }}
steps:
- name: dnf update
run: sudo dnf update -y
- name: Install Packagers & Cross-Compiler
run: |
sudo dnf install -y \
@development-tools \
@rpm-development-tools \
python-pip \
gcc-aarch64-linux-gnu
- name: Checkout
uses: actions/checkout@v2
- name: Build RPMs
run: |
make package-fedora RPMBUILD_TARGET=x86_64
make package-fedora RPMBUILD_TARGET=aarch64
- name: Upload Results
uses: actions/upload-artifact@v3
with:
name: rpm
path: out/fedora/*