-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create build-on-pull_req.yml * Create build-on-tags.yml
- Loading branch information
Showing
2 changed files
with
276 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: CI on PRs with SDK for 2.2.0 (i486) | ||
|
||
env: | ||
RELEASE: 2.2.0.29 | ||
ARCH: i486 | ||
# Do not wait up to the default of 10 minutes for network timeouts in a workflow which runs ca. 3 minutes. | ||
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- devel | ||
- master | ||
# Allows to run this workflow manually from the Actions tab. | ||
workflow_dispatch: | ||
|
||
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 | ||
|
||
# Do not use concurrency in order to enforce checking every commit of a Pull Request. | ||
# 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 | ||
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 ${{ env.ARCH }} | ||
uses: coderus/github-sfos-build@old-stable | ||
with: | ||
# Solely builds for i486 on 2.2.0, because of https://github.com/sailfishos-patches/patchmanager/pull/437#issuecomment-1615317003 | ||
release: ${{ env.RELEASE }} | ||
arch: ${{ env.ARCH }} | ||
|
||
- name: Upload build result | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: RPM-build-results_${{ github.base_ref }}-${{ env.ARCH }}-SFOS2.2.0+ | ||
path: RPMS/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,214 @@ | ||
name: CI on tags (aarch64,armv7hl,i486) | ||
|
||
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 | ||
- '**' | ||
# Allows to run this workflow manually from the Actions tab. | ||
#workflow_dispatch: | ||
# Rather set a new tag in the format N/X.Y.Z (e.g., 1/0.6.3) to build a release originally tagged with 0.6.3 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: true | ||
|
||
jobs: | ||
SDK-220: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
# For the available docker images, see https://github.com/CODeRUS/docker-sailfishos-platform-sdk | ||
RELEASE: 2.2.0.29 | ||
# 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/ | ||
|
||
|
||
SDK-310: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
# For the available docker images, see https://github.com/CODeRUS/docker-sailfishos-platform-sdk | ||
RELEASE: 3.1.0.12 | ||
# 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 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/ | ||
|
||
|
||
SDK-340_401: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
# For the available docker images, see https://github.com/CODeRUS/docker-sailfishos-platform-sdk | ||
RELEASE: 3.4.0.24 | ||
# 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 4.0.1.45 | ||
uses: coderus/github-sfos-build@master | ||
with: | ||
release: 4.0.1.45 | ||
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/ | ||
|
||
|
||
SDK-440: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
# For the available docker images, see https://github.com/CODeRUS/docker-sailfishos-platform-sdk | ||
RELEASE: 4.4.0.68 | ||
# 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/ | ||
|