-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (41 loc) · 1.29 KB
/
build-packages.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
name: Build packages
on:
pull_request:
push:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
env:
INSPIRCD_DEB_PLATFORMS: ${{ matrix.package == 'deb' && matrix.platform || null }}
INSPIRCD_RPM_PLATFORMS: ${{ matrix.package == 'rpm' && matrix.platform || null }}
INSPIRCD_IGNORE_WARNINGS: 1
INSPIRCD_PACKAGES: ${{ matrix.package }} html
INSPIRCD_REVISION: ${{ github.sha }}
steps:
- uses: actions/checkout@v4
- name: Retrieve latest release
run: |
echo INSPIRCD_VERSION=$(curl https://api.github.com/repos/inspircd/inspircd/releases | jq --raw-output 'map(select((.draft or .prerelease | not) and (.tag_name | startswith("v4.")))) | first .tag_name | .[1:]') >> $GITHUB_ENV
- name: Build packages
run: ./build.sh
- name: List packages
run: cat ./build/packages.yml
strategy:
fail-fast: false
matrix:
include:
- package: deb
platform: debian-12
- package: deb
platform: debian-13
- package: deb
platform: ubuntu-22-04
- package: deb
platform: ubuntu-24-04
- package: rpm
platform: rocky-8
- package: rpm
platform: rocky-9