diff options
| author | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
| commit | ffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch) | |
| tree | 1269efa852935b183daae4bb33a58d1b4d2ffb53 /.github/workflows/release.yml | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to '.github/workflows/release.yml')
| -rw-r--r-- | .github/workflows/release.yml | 65 |
1 files changed, 28 insertions, 37 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bde30629..b98a5ac7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: workflow_call: inputs: candidate_tag: - description: "Immutable internal tag (build/vX.Y.Z or build/vX.Y.Z-rcN)" + description: "Immutable internal tag (build/vX.Y.Z, build/vX.Y.Z-betaN, or build/vX.Y.Z-rcN)" required: true type: string expected_sha: @@ -26,11 +26,12 @@ jobs: timeout-minutes: 10 outputs: version: ${{ steps.identity.outputs.version }} - release_channel: ${{ steps.identity.outputs.channel }} - rc_number: ${{ steps.identity.outputs.rc_number }} windows_signing: ${{ steps.identity.outputs.windows_signing }} - linux_image_tag: ${{ steps.linux-image.outputs.image_tag }} - armhf_image_tag: ${{ steps.armhf-image.outputs.image_tag }} + image_tag: ${{ steps.linux-images.outputs.image_tag }} + x86_64_digest: ${{ steps.linux-images.outputs.x86_64_digest }} + aarch64_digest: ${{ steps.linux-images.outputs.aarch64_digest }} + armhf_digest: ${{ steps.linux-images.outputs.armhf_digest }} + armhf_cross_digest: ${{ steps.linux-images.outputs.armhf_cross_digest }} env: CANDIDATE_TAG: ${{ inputs.candidate_tag }} EXPECTED_SHA: ${{ inputs.expected_sha }} @@ -44,7 +45,7 @@ jobs: run: | set -euo pipefail if [[ ! "$CANDIDATE_TAG" =~ ^build/v(.+)$ ]]; then - echo "::error::Expected build/vX.Y.Z or build/vX.Y.Z-rcN, got $CANDIDATE_TAG" + echo "::error::Expected build/vX.Y.Z, build/vX.Y.Z-betaN, or build/vX.Y.Z-rcN, got $CANDIDATE_TAG" exit 1 fi ACTUAL_SHA=$(git rev-parse HEAD) @@ -56,21 +57,13 @@ jobs: IDENTITY=$(python3 .github/scripts/release-policy.py validate-source "$VERSION") { echo "version=$(jq -r .version <<<"$IDENTITY")" - echo "channel=$(jq -r .channel <<<"$IDENTITY")" - echo "rc_number=$(jq -r .rc_number <<<"$IDENTITY")" echo "windows_signing=$(jq -r .windows_signing <<<"$IDENTITY")" } >> "$GITHUB_OUTPUT" - - id: linux-image - name: Resolve Linux CI image generation - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: .github/scripts/resolve-linux-ci-image-tag.py - - id: armhf-image - name: Resolve armhf CI image generation - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RESOLVE_ARMHF: true - run: .github/scripts/resolve-linux-ci-image-tag.py + - name: Validate prepared Linux images + id: linux-images + run: | + python3 .github/scripts/release-linux-images.py validate release-linux-images.json \ + --check-remote --github-output "$GITHUB_OUTPUT" macos: needs: prepare @@ -81,8 +74,6 @@ jobs: arch: arm64 runner: macos-15 deployment_target: "11.0" - release_channel: ${{ needs.prepare.outputs.release_channel }} - rc_number: ${{ needs.prepare.outputs.rc_number }} signing_mode: validation macos-intel: @@ -94,8 +85,6 @@ jobs: arch: x86_64 runner: macos-15-intel deployment_target: "10.13" - release_channel: ${{ needs.prepare.outputs.release_channel }} - rc_number: ${{ needs.prepare.outputs.rc_number }} signing_mode: validation linux: @@ -105,11 +94,11 @@ jobs: version: ${{ needs.prepare.outputs.version }} hamlib_branch: "4.7.2" arch: x86_64 - image_tag: ${{ needs.prepare.outputs.linux_image_tag }} + image_digest: ${{ needs.prepare.outputs.x86_64_digest }} + image_source: public-release + image_tag: ${{ needs.prepare.outputs.image_tag }} save_ccache: true build_packages: true - release_channel: ${{ needs.prepare.outputs.release_channel }} - rc_number: ${{ needs.prepare.outputs.rc_number }} linux-arm: needs: prepare @@ -118,14 +107,14 @@ jobs: version: ${{ needs.prepare.outputs.version }} hamlib_branch: "4.7.2" arch: aarch64 - image_tag: ${{ needs.prepare.outputs.linux_image_tag }} + image_digest: ${{ needs.prepare.outputs.aarch64_digest }} + image_source: public-release + image_tag: ${{ needs.prepare.outputs.image_tag }} save_ccache: true build_packages: true - release_channel: ${{ needs.prepare.outputs.release_channel }} - rc_number: ${{ needs.prepare.outputs.rc_number }} # Cross-compile on x86_64, then run target tests, packaging, and AppImage - # validation in the paired ARMv7 runtime image under QEMU. + # validation in the paired ARMv7 runtime image on an ARM runner. linux-armhf: needs: prepare uses: ./.github/workflows/build-linux.yml @@ -133,12 +122,12 @@ jobs: version: ${{ needs.prepare.outputs.version }} hamlib_branch: "4.7.2" arch: armhf - image_tag: ${{ needs.prepare.outputs.armhf_image_tag }} - allow_stale_image: true + image_source: public-release + image_tag: ${{ needs.prepare.outputs.image_tag }} + image_digest: ${{ needs.prepare.outputs.armhf_digest }} + armhf_cross_image_digest: ${{ needs.prepare.outputs.armhf_cross_digest }} save_ccache: true build_packages: true - release_channel: ${{ needs.prepare.outputs.release_channel }} - rc_number: ${{ needs.prepare.outputs.rc_number }} windows: needs: prepare @@ -146,8 +135,6 @@ jobs: with: version: ${{ needs.prepare.outputs.version }} hamlib_branch: "4.7.2" - release_channel: ${{ needs.prepare.outputs.release_channel }} - rc_number: ${{ needs.prepare.outputs.rc_number }} candidate-ready: needs: [prepare, macos, macos-intel, linux, linux-arm, linux-armhf, windows] @@ -158,6 +145,9 @@ jobs: - uses: actions/download-artifact@v8 with: path: artifacts + # build-linux.yml hands this tree between its ARMHF jobs; it is no asset. + - name: Drop the ARMHF build tree + run: rm -rf artifacts/armhf-build-tree - name: Verify all candidate artifacts run: python3 .github/scripts/release-policy.py verify-assets "${{ needs.prepare.outputs.version }}" artifacts - name: Verify candidate packaging reports @@ -180,7 +170,8 @@ jobs: --arg repository "$GITHUB_REPOSITORY" \ --arg run_id "$GITHUB_RUN_ID" \ --arg windows_release_mode "$WINDOWS_RELEASE_MODE" \ - '{schema: 1, version: $version, tag: $tag, commit: $commit, repository: $repository, workflow_run: $run_id, windows_release_signing: $windows_release_mode, candidate_signing: {windows: "unsigned", macos: "validation"}}' \ + --argjson linux_images "$(python3 .github/scripts/release-linux-images.py provenance release-linux-images.json)" \ + '{schema: 1, version: $version, tag: $tag, commit: $commit, repository: $repository, workflow_run: $run_id, linux_images: $linux_images, windows_release_signing: $windows_release_mode, candidate_signing: {windows: "unsigned", macos: "validation"}}' \ > artifacts/candidate-provenance.json - name: Upload complete candidate uses: actions/upload-artifact@v7 |
