-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (46 loc) · 1.8 KB
/
Copy pathrelease.yml
File metadata and controls
50 lines (46 loc) · 1.8 KB
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
---
name: release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '*' # Push any events
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- platform: linux/amd64
rpm_arch: x86_64
deb_arch: amd64
docker-image: "amazonlinux:2"
pre-build-command: 'yum install -y rpm-build rpmdevtools gcc make coreutils python git rsync yum-utils GeoIP-devel https://github.com/fb929/build-libmaxminddb/releases/download/1.11.0-0/libmaxminddb-1.11.0-0.amzn2.x86_64.rpm'
#- platform: linux/arm64
# rpm_arch: aarch64
# deb_arch: arm64
# docker-image: "amazonlinux:2"
- platform: linux/amd64
rpm_arch: x86_64
deb_arch: amd64
docker-image: "almalinux:9"
pre-build-command: 'yum install -y http://www6.atomicorp.com/channels/atomic/centos/9/x86_64/RPMS/atomic-release-1.0-23.el9.art.noarch.rpm; dnf install --allowerasing -y rpm-build rpmdevtools gcc make coreutils python git rsync yum-utils GeoIP-devel https://github.com/fb929/build-libmaxminddb/releases/download/1.11.0-0/libmaxminddb-1.11.0-0.amzn2.x86_64.rpm'
steps:
- name: check out repository code
uses: actions/checkout@v4
- name: build RPM package
uses: fb929/rpmbuild@main
with:
platform: ${{ matrix.platform }}
docker-image: ${{ matrix.docker-image }}
pre-build-command: ${{ matrix.pre-build-command }}
# create release and upload assets
- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
prerelease: true
files: |
./result/*.rpm
./result/*.sha256sum
./result/*.md5sum