-
Notifications
You must be signed in to change notification settings - Fork 15
86 lines (72 loc) · 2.92 KB
/
build-sfos4.2_latest.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
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
76
77
78
79
80
81
82
83
84
85
name: CI - sfos4.2 branch on latest SDK (aarch64,armv7hl,i486)
env:
# For the latest available docker image, see https://github.com/CODeRUS/docker-sailfishos-platform-sdk
RELEASE: 4.5.0.16
on:
push:
tags:
- 'release*_sfos4.2/*'
- 'rc*_sfos4.2/*'
- 'beta*_sfos4.2/*'
- 'alpha*_sfos4.2/*'
- 'sfos4.2/*'
pull_request:
branches:
- sfos4.2
# Allows to run this workflow manually from the Actions tab.
#workflow_dispatch:
# Rather set a new release in the spec file and a new tag in the format N/X.Y.Z (e.g., release2_sfos4.2/0.6.3) to build a release version again.
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
# See, e.g.: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow
concurrency:
group: ci-${{ github.ref_name }}
# 'false' (default) allows for two concurrent runs, one executing and one freshly enqueued; 'true' for only one; no 'concurrency:' defined for multiple.
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-22.04
env:
# Do not wait up to the default of 10 minutes for network timeouts in a workflow which runs ca. 10 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
steps:
- name: Checkout
uses: actions/checkout@v3
# Caching Docker images is not ready yet, see
# https://github.com/storeman-developers/harbour-storeman-installer/blob/devel/cache-docker-images_github-ci.md
#- name: Cache Docker images of the Sailfish-SDK
# id: cache-sdk
# uses: actions/cache@v3
# with:
# path: $GITHUB_WORKSPACE/…
# key: cache
- name: Prepare
run: mkdir RPMS
- name: Build aarch64 on ${{ env.RELEASE }}
uses: coderus/github-sfos-build@master
with:
release: ${{ env.RELEASE }}
arch: aarch64
- name: Build armv7hl on ${{ env.RELEASE }}
uses: coderus/github-sfos-build@master
with:
release: ${{ env.RELEASE }}
arch: armv7hl
- name: Build i486 on ${{ env.RELEASE }}
uses: coderus/github-sfos-build@master
with:
release: ${{ env.RELEASE }}
arch: i486
- name: Upload build results
uses: actions/upload-artifact@v3
with:
name: RPM-build-results_SFOS${{ env.RELEASE }}+
path: RPMS/
# Just for fun, see https://feathericons.com/ and
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#branding
#branding: # "Invalid workflow file: Unexpected value 'branding'"; maybe action MUST be located in '/' or the name MUST be action.yml or both, see e.g., https://github.com/actions/cache/blob/main/action.yml#L37
# icon: 'gift'
# color: 'purple'