diff --git a/.github/workflows/ci-on-tags.yml b/.github/workflows/ci-on-tags.yml index d17dd7e4..a52c16af 100644 --- a/.github/workflows/ci-on-tags.yml +++ b/.github/workflows/ci-on-tags.yml @@ -12,8 +12,9 @@ on: env: # For the available docker images, see https://github.com/CODeRUS/docker-sailfishos-platform-sdk - # But LATEST means here, "known to run on the latest SailfishOS release": Binaries for 4.3.0 are known to run on 5.0.0. - LATEST: 4.3.0.12 + # But LATEST means here, "known to run on the latest SailfishOS release": Binaries for 4.3.0 are known to run on 5.0.0, + # though altered icon paths by 4.6.0 require building for it, for details see https://github.com/sailfishos-patches/patchmanager/pull/479#pullrequestreview-2483451820 + LATEST: 4.6.0.13 # Do not wait up to the default of 10 minutes for network timeouts in a workflow which runs at most 20 minutes. SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2 @@ -100,6 +101,74 @@ jobs: name: RPM-build-results_SDK-for-${{ env.RELEASE }} path: output/ + + build-on-4-3-0: + env: + RELEASE: 4.3.0.12 + runs-on: ubuntu-24.04 + steps: + + - name: Checkout git repository + uses: actions/checkout@v4 + + #- name: Prepare + # run: + + # 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@v4 + # with: + # path: $GITHUB_WORKSPACE/… + # key: cache + + - name: Build ${{ env.ARCH }} on ${{ env.RELEASE }} + env: + ARCH: i486 + run: | + set -x + mkdir -p output/$RELEASE/$ARCH + docker run --rm -v $PWD:/share coderus/sailfishos-platform-sdk:$RELEASE /bin/sh -xc ' + mkdir -p build + cd build + cp -r /share/. . + mb2 -t SailfishOS-$1-$2 build -d + sudo cp -r RPMS/. /share/output/$1/$2/' sh_mb2 $RELEASE $ARCH + + - name: Build ${{ env.ARCH }} on ${{ env.RELEASE }} + env: + ARCH: armv7hl + run: | + set -x + mkdir -p output/$RELEASE/$ARCH + docker run --rm -v $PWD:/share coderus/sailfishos-platform-sdk:$RELEASE /bin/sh -xc ' + mkdir -p build + cd build + cp -r /share/. . + mb2 -t SailfishOS-$1-$2 build -d + sudo cp -r RPMS/. /share/output/$1/$2/' sh_mb2 $RELEASE $ARCH + + - name: Build ${{ env.ARCH }} on ${{ env.RELEASE }} + env: + ARCH: aarch64 + run: | + set -x + mkdir -p output/$RELEASE/$ARCH + docker run --rm -v $PWD:/share coderus/sailfishos-platform-sdk:$RELEASE /bin/sh -xc ' + mkdir -p build + cd build + cp -r /share/. . + mb2 -t SailfishOS-$1-$2 build -d + sudo cp -r RPMS/. /share/output/$1/$2/' sh_mb2 $RELEASE $ARCH + + - name: Upload build results + uses: actions/upload-artifact@v4 + with: + name: RPM-build-results_SDK-for-${{ env.RELEASE }} + path: output/ + + build-on-OLDEST: runs-on: ubuntu-24.04 steps: