-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (71 loc) · 2.19 KB
/
Copy pathbuild.yaml
File metadata and controls
75 lines (71 loc) · 2.19 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
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
name: Build RPMs
on:
[push, workflow_dispatch]
env:
OS_VERSION: 5.0.0.43
jobs:
build:
runs-on: ubuntu-24.04
timeout-minutes: 45
name: Build App
defaults:
run:
# Note that 'bash' provides -o pipefail, in contrast to the default (i.e., unspecified, which also uses bash) or 'sh',
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
shell: sh
strategy:
matrix:
arch: ['armv7hl', 'aarch64', 'i486']
steps:
- uses: actions/checkout@v4
- name: Prepare
run: mkdir RPMS
- name: Build ${{ matrix.arch }}
uses: coderus/github-sfos-build@master
with:
release: ${{ env.OS_VERSION }}
arch: ${{ matrix.arch }}
- name: Upload RPM ${{ matrix.arch }}
uses: actions/upload-artifact@v4
with:
name: RPM-build-results-SFOS-${{ env.OS_VERSION }}-${{ matrix.arch }}
path: RPMS/
release:
name: Release
if: startsWith(github.ref, 'refs/tags/v')
needs:
- build
runs-on: ubuntu-24.04
steps:
- name: Download armv7hl
uses: actions/download-artifact@v4
with:
name: RPM-build-results-SFOS-${{ env.OS_VERSION }}-armv7hl
continue-on-error: true
- name: Download aarch64
uses: actions/download-artifact@v4
with:
name: RPM-build-results-SFOS-${{ env.OS_VERSION }}-aarch64
continue-on-error: true
- name: Download i486
uses: actions/download-artifact@v4
with:
name: RPM-build-results-SFOS-${{ env.OS_VERSION }}-i486
continue-on-error: true
- name: Extract Version Name
id: extract_name
uses: actions/github-script@v7
with:
result-encoding: string
script: |
return context.payload.ref.replace(/refs\/tags\//, '');
- name: Create a Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ${{ steps.extract_name.outputs.result }}
draft: false
prerelease: false
body: This release was autogenerated.
files: '*.rpm'