diff options
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70ce9fe4..3b96564a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,12 +42,14 @@ jobs: # optional fourth tweak segment (3.0.0.0 → 3.0.0) to match the 3-part # shape release.yml derives from build/v<X.Y.Z> tags. prepare: + if: >- + github.repository != 'WSJTX/wsjtx' || + github.event_name != 'push' || + !startsWith(github.ref, 'refs/heads/release/') runs-on: ubuntu-latest timeout-minutes: 10 outputs: version: ${{ steps.v.outputs.version }} - release_channel: ${{ steps.v.outputs.release_channel }} - rc_number: ${{ steps.v.outputs.rc_number }} linux_image_tag: ${{ steps.linux-image.outputs.image_tag }} armhf_image_tag: ${{ steps.armhf-image.outputs.image_tag }} save_linux_ccache: ${{ steps.ccache-policy.outputs.save_ccache }} @@ -70,14 +72,8 @@ jobs: run: | STATE=$(python3 .github/scripts/release-policy.py read-state) VERSION=$(jq -r .version <<<"$STATE") - CHANNEL=$(jq -r .channel <<<"$STATE") - RC_NUMBER=$(jq -r .rc <<<"$STATE") echo "Derived version from release-state.txt: $VERSION" - { - echo "version=$VERSION" - echo "release_channel=$CHANNEL" - echo "rc_number=$RC_NUMBER" - } >> "$GITHUB_OUTPUT" + echo "version=$VERSION" >> "$GITHUB_OUTPUT" # PRs can consume develop caches, so only trusted develop executions may # publish the Linux cache shared with later pull-request builds. - id: ccache-policy @@ -87,12 +83,12 @@ jobs: REQUEST_SAVE_CCACHE: ${{ inputs.save_ccache || false }} RECACHE: ${{ inputs.recache || false }} run: .github/scripts/select-linux-ccache-save.sh + # Routine PRs and develop pushes build and test without packaging. + # Full CI, manual runs, and release-branch pushes also validate packages. - id: packaging-policy name: Select Linux packaging policy env: EVENT_NAME: ${{ github.event_name }} - PR_BASE_SHA: ${{ github.event.pull_request.base.sha }} - CURRENT_SHA: ${{ github.sha }} FULL_CI: ${{ contains(github.event.pull_request.labels.*.name, 'full-ci') }} run: .github/scripts/select-linux-packaging.sh - id: linux-image @@ -145,8 +141,6 @@ jobs: runner: "macos-15" deployment_target: "11.0" recache: ${{ inputs.recache || false }} - release_channel: ${{ needs.prepare.outputs.release_channel }} - rc_number: ${{ needs.prepare.outputs.rc_number }} macos-intel: needs: [prepare, linux] @@ -162,8 +156,6 @@ jobs: runner: "macos-15-intel" deployment_target: "10.13" recache: ${{ inputs.recache || false }} - release_channel: ${{ needs.prepare.outputs.release_channel }} - rc_number: ${{ needs.prepare.outputs.rc_number }} linux: needs: [prepare] @@ -178,8 +170,6 @@ jobs: save_ccache: ${{ needs.prepare.outputs.save_linux_ccache == 'true' }} validate_fortran_fallback: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'full-ci') }} build_packages: ${{ needs.prepare.outputs.build_linux_packages == 'true' }} - release_channel: ${{ needs.prepare.outputs.release_channel }} - rc_number: ${{ needs.prepare.outputs.rc_number }} secrets: inherit linux-sanitizers: @@ -224,13 +214,11 @@ jobs: recache: ${{ inputs.recache || false }} save_ccache: ${{ needs.prepare.outputs.save_linux_ccache == 'true' }} build_packages: ${{ needs.prepare.outputs.build_linux_packages == 'true' }} - release_channel: ${{ needs.prepare.outputs.release_channel }} - rc_number: ${{ needs.prepare.outputs.rc_number }} secrets: inherit linux-armhf: needs: [prepare, linux] - # Opt-in only -- target tests and runtime validation execute under QEMU. + # Opt-in only, like the other targets beyond Linux x86_64. if: >- github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'full-ci') @@ -244,8 +232,6 @@ jobs: recache: ${{ inputs.recache || false }} save_ccache: ${{ needs.prepare.outputs.save_linux_ccache == 'true' }} build_packages: ${{ needs.prepare.outputs.build_linux_packages == 'true' }} - release_channel: ${{ needs.prepare.outputs.release_channel }} - rc_number: ${{ needs.prepare.outputs.rc_number }} secrets: inherit windows: @@ -259,5 +245,3 @@ jobs: version: ${{ needs.prepare.outputs.version }} hamlib_branch: "4.7.2" recache: ${{ inputs.recache || false }} - release_channel: ${{ needs.prepare.outputs.release_channel }} - rc_number: ${{ needs.prepare.outputs.rc_number }} |
