|
| 1 | +name: CI - sfos4.2 branch on SDK for 4.3.0 (aarch64,armv7hl,i486) |
| 2 | + |
| 3 | +env: |
| 4 | + # For the available docker images, see https://github.com/CODeRUS/docker-sailfishos-platform-sdk |
| 5 | + # Binaries for 4.3.0 are known to run on the most recent SFOS release (5.0.0 as of April 2025), |
| 6 | + # but when this breaks a new CI workflow configuration file shall be created from this one for the |
| 7 | + # "oldest common denominator"-SDK known to generate binaries which run on the then current SailfishOS release. |
| 8 | + RELEASE: 4.3.0.12 |
| 9 | + |
| 10 | +on: |
| 11 | + push: |
| 12 | + tags: |
| 13 | + - 'release*_sfos4.2/*' |
| 14 | + - 'rc*_sfos4.2/*' |
| 15 | + - 'beta*_sfos4.2/*' |
| 16 | + - 'alpha*_sfos4.2/*' |
| 17 | + - 'sfos4.2/*' |
| 18 | + # Allows to run this workflow manually from the Actions tab. |
| 19 | + #workflow_dispatch: |
| 20 | + # 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. |
| 21 | + |
| 22 | +defaults: |
| 23 | + run: |
| 24 | + # Note that 'bash' provides -o pipefail, in contrast to the default (i.e., unspecified, which also uses bash) or 'sh', |
| 25 | + # see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell |
| 26 | + shell: sh |
| 27 | + |
| 28 | +# 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 |
| 29 | +concurrency: |
| 30 | + group: ci-${{ github.ref_name }} |
| 31 | + # 'false' (default) allows for two concurrent runs, one executing and one freshly enqueued; 'true' for only one; no 'concurrency:' defined for multiple. |
| 32 | + cancel-in-progress: false |
| 33 | + |
| 34 | +jobs: |
| 35 | + build: |
| 36 | + runs-on: ubuntu-24.04 |
| 37 | + env: |
| 38 | + # Do not wait up to the default of 10 minutes for network timeouts in a workflow which runs ca. 10 minutes. |
| 39 | + SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2 |
| 40 | + steps: |
| 41 | + |
| 42 | + - name: Checkout |
| 43 | + uses: actions/checkout@v4 |
| 44 | + |
| 45 | + # Caching Docker images is not ready yet, see |
| 46 | + # https://github.com/storeman-developers/harbour-storeman-installer/blob/devel/cache-docker-images_github-ci.md |
| 47 | + #- name: Cache Docker images of the Sailfish-SDK |
| 48 | + # id: cache-sdk |
| 49 | + # uses: actions/cache@v3 |
| 50 | + # with: |
| 51 | + # path: $GITHUB_WORKSPACE/… |
| 52 | + # key: cache |
| 53 | + |
| 54 | + - name: Prepare |
| 55 | + run: mkdir RPMS |
| 56 | + |
| 57 | + - name: Build aarch64 on ${{ env.RELEASE }} |
| 58 | + uses: coderus/github-sfos-build@master |
| 59 | + with: |
| 60 | + release: ${{ env.RELEASE }} |
| 61 | + arch: aarch64 |
| 62 | + |
| 63 | + - name: Build armv7hl on ${{ env.RELEASE }} |
| 64 | + uses: coderus/github-sfos-build@master |
| 65 | + with: |
| 66 | + release: ${{ env.RELEASE }} |
| 67 | + arch: armv7hl |
| 68 | + |
| 69 | + - name: Build i486 on ${{ env.RELEASE }} |
| 70 | + uses: coderus/github-sfos-build@master |
| 71 | + with: |
| 72 | + release: ${{ env.RELEASE }} |
| 73 | + arch: i486 |
| 74 | + |
| 75 | + - name: Upload build results |
| 76 | + uses: actions/upload-artifact@v4 |
| 77 | + with: |
| 78 | + name: RPM-build-results_SFOS4.3.0+ |
| 79 | + path: RPMS/ |
| 80 | + |
| 81 | +# Just for fun, see https://feathericons.com/ and |
| 82 | +# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#branding |
| 83 | +#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 |
| 84 | +# icon: 'gift' |
| 85 | +# color: 'purple' |
| 86 | + |
0 commit comments