You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [ci-on-tags.yml] Overhaul and split into two jobs
Trigger / Rationale: Trying to download three multi-GB, layered docker images in a single job may result in `docker: write /var/lib/docker/tmp/GetImageBlobXYZ: no space left on device.`, see https://github.com/sailfishos-patches/patchmanager/actions/runs/5871696093/job/15921691170#step:7:45
Hence splitting the "big" `CI on tags` workflow into two jobs and slightly enhancing both CI workflows.
* [ci-on-pull_req.yml] Overhaul
Copy file name to clipboardExpand all lines: .github/workflows/ci-on-pull_req.yml
+28-6Lines changed: 28 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,36 @@
1
-
name: CI on Pull Request to master and patchmanager3 branches
1
+
name: CI on PRs to master & patchmanager3 branches
2
2
3
3
on:
4
4
pull_request:
5
5
branches:
6
6
- master
7
7
- patchmanager3
8
+
# Allows to run this workflow manually from the Actions tab
9
+
workflow_dispatch:
10
+
11
+
env:
12
+
# Do not wait up to the default of 10 minutes for network timeouts in a workflow which runs ca. 5 minutes
13
+
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
14
+
15
+
defaults:
16
+
run:
17
+
# Note thas 'bash' provides -o pipefail, in contrast to the default (i.e., unspecified, which also uses bash) or 'sh',
18
+
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
19
+
shell: sh
20
+
21
+
# 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
22
+
concurrency:
23
+
group: ci-${{ github.ref_name }}
24
+
cancel-in-progress: false # 'false' (default) allows for two concurrent runs, one executing and one freshly enqueued; 'true' for only one; no 'concurrency:' defined for multiple.
8
25
9
26
jobs:
10
27
build:
11
28
runs-on: ubuntu-22.04
12
29
env:
13
-
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
30
+
ARCH: i486
31
+
RELEASE: 3.4.0.24
14
32
steps:
33
+
15
34
- name: Checkout
16
35
uses: actions/checkout@v3
17
36
@@ -28,9 +47,6 @@ jobs:
28
47
# key: cache
29
48
30
49
- name: Build ${{ env.ARCH }} on ${{ env.RELEASE }}
#branding: # "Invalid workflow file: Unexpected value 'branding'"; maybe action MUST be located in '/' or the name MUST be action.yml, see e.g., https://github.com/actions/cache/blob/main/action.yml#L37
Copy file name to clipboardExpand all lines: .github/workflows/ci-on-tags.yml
+54-15Lines changed: 54 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,41 @@ name: CI on tags
3
3
on:
4
4
push:
5
5
tags:
6
-
- '*'
6
+
# '**' also matches the slash ('/'), in contrast to '*',
7
+
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
8
+
- '**'
9
+
# Allows to run this workflow manually from the Actions tab
10
+
workflow_dispatch:
7
11
12
+
# 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
8
13
env:
14
+
# For the latest available docker image, see https://github.com/CODeRUS/docker-sailfishos-platform-sdk
9
15
LATEST: 4.5.0.16
16
+
# Do not wait up to the default of 10 minutes for network timeouts in a workflow which runs at most 20 minutes
17
+
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
18
+
19
+
defaults:
20
+
run:
21
+
# Note thas 'bash' provides -o pipefail, in contrast to the default (i.e., unspecified, which also uses bash) or 'sh',
22
+
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
23
+
shell: sh
24
+
25
+
concurrency:
26
+
group: ci-${{ github.ref_name }}
27
+
cancel-in-progress: false # 'false' (default) allows for two concurrent runs, one executing and one freshly enqueued; 'true' for only one; no 'concurrency:' defined for multiple.
10
28
11
29
jobs:
12
-
build:
13
-
runs-on: ubuntu-22.04
30
+
# One job for the latest Docker images used and one for the oldest ones.
31
+
# Trying to download three multi-GB, layered docker images in a single job may
32
+
# result in "docker: write /var/lib/docker/tmp/GetImageBlobXYZ: no space left on device."
33
+
34
+
build-on-LATEST:
14
35
env:
15
-
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
36
+
RELEASE: ${{ env.LATEST }}
37
+
runs-on: ubuntu-22.04
16
38
steps:
17
-
- name: Checkout
39
+
40
+
- name: Checkout git repository
18
41
uses: actions/checkout@v3
19
42
20
43
#- name: Prepare
@@ -31,8 +54,7 @@ jobs:
31
54
32
55
- name: Build ${{ env.ARCH }} on ${{ env.RELEASE }}
33
56
env:
34
-
ARCH: aarch64
35
-
RELEASE: ${{ env.LATEST }}
57
+
ARCH: i486
36
58
run: |
37
59
set -x
38
60
mkdir -p output/$RELEASE/$ARCH
@@ -46,7 +68,6 @@ jobs:
46
68
- name: Build ${{ env.ARCH }} on ${{ env.RELEASE }}
47
69
env:
48
70
ARCH: armv7hl
49
-
RELEASE: ${{ env.LATEST }}
50
71
run: |
51
72
set -x
52
73
mkdir -p output/$RELEASE/$ARCH
@@ -59,8 +80,7 @@ jobs:
59
80
60
81
- name: Build ${{ env.ARCH }} on ${{ env.RELEASE }}
#branding: # "Invalid workflow file: Unexpected value 'branding'"; maybe action MUST be located in '/' or the name MUST be action.yml, see e.g., https://github.com/actions/cache/blob/main/action.yml#L37
0 commit comments