|
10 | 10 | required: true
|
11 | 11 | type: string
|
12 | 12 |
|
13 |
| - |
14 | 13 | jobs:
|
15 | 14 | build:
|
16 | 15 | runs-on: ubuntu-latest
|
17 | 16 | container:
|
18 | 17 | image: fedora:40
|
19 | 18 |
|
20 | 19 | steps:
|
21 |
| - - name: Install Git |
22 |
| - run: dnf install -y git |
23 |
| - |
24 |
| - - name: Checkout repository |
25 |
| - uses: actions/checkout@v4 |
26 |
| - |
27 |
| - - name: Configure Git safe directory |
28 |
| - run: git config --global --add safe.directory "$GITHUB_WORKSPACE" |
29 |
| - |
30 |
| - - name: Install build dependencies |
31 |
| - 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 |
32 |
| - |
33 |
| - - name: Build the project |
34 |
| - run: | |
35 |
| - git submodule update --init --recursive |
36 |
| - ./configure.sh --prefix=/usr |
37 |
| - make |
38 |
| - mkdir -p ~/rpmbuild/SOURCES |
39 |
| - cp -r . ~/rpmbuild/SOURCES/umu-launcher |
40 |
| - sed -re 's|(Version:\s+)[1-9.]+|\1${{ inputs.version }}|g' -i packaging/rpm/umu-launcher.spec |
41 |
| - sed -re 's|(%define tag\s+)[1-9.]+|\1${{ inputs.version }}|g' -i packaging/rpm/umu-launcher.spec |
42 |
| - sed -re 's|(%define manual_commit\s+)\w+|\1${{ inputs.shasum }}|g' -i packaging/rpm/umu-launcher.spec |
43 |
| - rpmbuild -ba packaging/rpm/umu-launcher.spec |
44 |
| - mv ~/rpmbuild/RPMS/x86_64/umu-launcher-${{ inputs.version }}*.rpm \ |
45 |
| - ~/rpmbuild/RPMS/x86_64/umu-launcher-${{ inputs.version }}.fc40.noarch.rpm |
46 |
| -
|
47 |
| - - name: Fedora-40 |
48 |
| - uses: actions/upload-artifact@v4 |
49 |
| - with: |
50 |
| - name: umu-launcher-${{ inputs.version }}.fc40.noarch.rpm |
51 |
| - path: ~/rpmbuild/RPMS/x86_64/umu-launcher-${{ inputs.version }}.fc40.noarch.rpm |
| 20 | + - name: Install Git |
| 21 | + run: dnf install -y git |
| 22 | + |
| 23 | + - name: Checkout repository |
| 24 | + uses: actions/checkout@v4 |
| 25 | + |
| 26 | + - name: Configure Git safe directory |
| 27 | + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" |
| 28 | + |
| 29 | + - name: Install build dependencies |
| 30 | + 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 |
| 31 | + |
| 32 | + - name: Build the project |
| 33 | + run: | |
| 34 | + git submodule update --init --recursive |
| 35 | + ./configure.sh --prefix=/usr |
| 36 | + make |
| 37 | + mkdir -p ~/rpmbuild/SOURCES |
| 38 | + cp -r . ~/rpmbuild/SOURCES/umu-launcher |
| 39 | + sed -re 's|(Version:\s+)[1-9.]+|\1${{ inputs.version }}|g' -i packaging/rpm/umu-launcher.spec |
| 40 | + sed -re 's|(%define tag\s+)[1-9.]+|\1${{ inputs.version }}|g' -i packaging/rpm/umu-launcher.spec |
| 41 | + sed -re 's|(%define manual_commit\s+)\w+|\1${{ inputs.shasum }}|g' -i packaging/rpm/umu-launcher.spec |
| 42 | + rpmbuild -ba packaging/rpm/umu-launcher.spec |
| 43 | + mv ~/rpmbuild/RPMS/x86_64/umu-launcher-${{ inputs.version }}*.rpm \ |
| 44 | + ~/rpmbuild/RPMS/x86_64/umu-launcher-${{ inputs.version }}.fc40.rpm |
| 45 | +
|
| 46 | + - name: Fedora-40 |
| 47 | + uses: actions/upload-artifact@v4 |
| 48 | + with: |
| 49 | + name: umu-launcher-${{ inputs.version }}.fc40.rpm |
| 50 | + path: ~/rpmbuild/RPMS/x86_64/umu-launcher-${{ inputs.version }}.fc40.rpm |
0 commit comments