Skip to content

Commit

Permalink
[Workflows] Adopt enhancements and comments from Patchmanager / Store…
Browse files Browse the repository at this point in the history
…man (#208)

* [ci-on-pull_req.yml] Adopt enhancements and comments from Storeman / Patchmanager

* [ci-on-tags.yml] Adopt enhancements and comments from Patchmanager / Storeman

* [ci-on-pull_req.yml] Add trailing newline
  • Loading branch information
Olf0 authored Sep 14, 2023
1 parent 8e8296d commit 186f5b6
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/ci-on-pull_req.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,26 @@ on:
pull_request:
branches:
- main
# Allows to run this workflow manually from the Actions tab.
workflow_dispatch:

defaults:
run:
# Note thas '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. 4 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
steps:
- name: Checkout
Expand All @@ -28,6 +43,7 @@ jobs:

- name: Build ${{ env.ARCH }} on ${{ env.RELEASE }}
env:
# Solely build for i486 on 4.0.1, because of https://github.com/sailfishos-patches/patchmanager/pull/437#issuecomment-1615317003
ARCH: i486
RELEASE: 4.0.1.45
run: |
Expand Down Expand Up @@ -64,3 +80,4 @@ jobs:
# hub release create"$assets" -m "$tag_name" "$tag_name"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

18 changes: 17 additions & 1 deletion .github/workflows/ci-on-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,31 @@ name: CI on tags
on:
push:
tags:
- '*'
# '**' also matches the slash ('/'), in contrast to '*',
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
- '**'

env:
LATEST: 4.5.0.16
# See https://hub.docker.com/r/coderus/sailfishos-platform-sdk/tags

defaults:
run:
# Note thas '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. 20 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
steps:
- name: Checkout
Expand Down Expand Up @@ -158,3 +173,4 @@ jobs:
# hub release create"$assets" -m "$tag_name" "$tag_name"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 186f5b6

Please sign in to comment.