-
Notifications
You must be signed in to change notification settings - Fork 46
50 lines (42 loc) · 1.74 KB
/
build-umu-fedora-41.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
name: UMU RPM Build - Fedora/Nobara 41
on:
workflow_call:
inputs:
version:
required: true
type: string
shasum:
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
container:
image: fedora:41
steps:
- name: Install Git
run: dnf install -y git
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure Git safe directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Install build dependencies
run: dnf install -y rpm-build meson ninja-build cmake g++ gcc-c++ scdoc git python3-devel python3-build python3-installer python3-hatchling python python3 cargo python3-hatch-vcs python3-wheel libzstd-devel
- name: Build the project
run: |
git submodule update --init --recursive
./configure.sh --prefix=/usr
make
mkdir -p ~/rpmbuild/SOURCES
cp -r . ~/rpmbuild/SOURCES/umu-launcher
sed -re 's|(Version:\s+)[1-9.]+|\1${{ inputs.version }}|g' -i packaging/rpm/umu-launcher.spec
sed -re 's|(%define tag\s+)[1-9.]+|\1${{ inputs.version }}|g' -i packaging/rpm/umu-launcher.spec
sed -re 's|(%define manual_commit\s+)\w+|\1${{ inputs.shasum }}|g' -i packaging/rpm/umu-launcher.spec
rpmbuild -ba packaging/rpm/umu-launcher.spec
mv ~/rpmbuild/RPMS/x86_64/umu-launcher-${{ inputs.version }}*.rpm \
~/rpmbuild/RPMS/x86_64/umu-launcher-${{ inputs.version }}.fc41.rpm
- name: Fedora-41
uses: actions/upload-artifact@v4
with:
name: umu-launcher-${{ inputs.version }}.fc41.rpm
path: ~/rpmbuild/RPMS/x86_64/umu-launcher-${{ inputs.version }}.fc41.rpm