summaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-06-22 12:03:55 +0200
committerChristoph Berg <myon@debian.org>2026-06-22 12:03:55 +0200
commitde18fc13175a5bf0e2b48a042d2fc06e87c88d24 (patch)
treef517074cd603d30eb7ba7e2122d38051e4c1439c /.github/workflows/release.yml
parentb76e8361909e47f0937d4a64a5a4cb5939f51eb7 (diff)
parentd83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff)
Update upstream source from tag 'upstream/3.0.2+dfsg'
Update to upstream version '3.0.2+dfsg' with Debian dir 90381fe7be9f5ea84d9b16c9cccf200a3fbe138b
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml60
1 files changed, 53 insertions, 7 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index be547624..a8b9bd42 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -15,10 +15,30 @@ jobs:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.v.outputs.version }}
+ release_channel: ${{ steps.v.outputs.release_channel }}
+ rc_number: ${{ steps.v.outputs.rc_number }}
steps:
- uses: actions/checkout@v6
- id: v
- run: echo "version=${GITHUB_REF_NAME#build/v}" >> "$GITHUB_OUTPUT"
+ run: |
+ VERSION="${GITHUB_REF_NAME#build/v}"
+ if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+ RELEASE_CHANNEL=GA
+ RC_NUMBER=""
+ elif [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+-rc([1-9][0-9]*)$ ]]; then
+ RELEASE_CHANNEL=RC
+ RC_NUMBER="${BASH_REMATCH[1]}"
+ else
+ echo "::error::Unsupported release tag version: $VERSION"
+ echo "::error::Supported release tags are build/vX.Y.Z and build/vX.Y.Z-rcN."
+ exit 1
+ fi
+
+ {
+ echo "version=$VERSION"
+ echo "release_channel=$RELEASE_CHANNEL"
+ echo "rc_number=$RC_NUMBER"
+ } >> "$GITHUB_OUTPUT"
# Enforce that the pushed tag's numeric version base
# matches CMakeLists.txt:55 VERSION (first 3 components). CMake's
@@ -45,8 +65,24 @@ jobs:
echo "Parity check PASSED."
# ── Build all five platforms ───────────────────────────────────────
- macos:
+ macos-arm64-qt:
+ needs: prepare
+ uses: ./.github/workflows/prepare-macos-qt.yml
+ with:
+ arch: "arm64"
+ runner: "macos-15"
+ deployment_target: "11.0"
+
+ macos-intel-qt:
needs: prepare
+ uses: ./.github/workflows/prepare-macos-qt.yml
+ with:
+ arch: "x86_64"
+ runner: "macos-15-intel"
+ deployment_target: "10.13"
+
+ macos:
+ needs: [prepare, macos-arm64-qt]
uses: ./.github/workflows/build-macos.yml
with:
version: ${{ needs.prepare.outputs.version }}
@@ -54,15 +90,19 @@ jobs:
arch: "arm64"
runner: "macos-15"
deployment_target: "11.0"
+ release_channel: ${{ needs.prepare.outputs.release_channel }}
+ rc_number: ${{ needs.prepare.outputs.rc_number }}
secrets: inherit
macos-intel:
- needs: prepare
+ needs: [prepare, macos-intel-qt]
uses: ./.github/workflows/build-macos.yml
with:
version: ${{ needs.prepare.outputs.version }}
hamlib_branch: "4.7.1"
arch: "x86_64"
+ release_channel: ${{ needs.prepare.outputs.release_channel }}
+ rc_number: ${{ needs.prepare.outputs.rc_number }}
runner: "macos-15-intel"
deployment_target: "10.13"
secrets: inherit
@@ -74,6 +114,8 @@ jobs:
version: ${{ needs.prepare.outputs.version }}
hamlib_branch: "4.7.1"
arch: "x86_64"
+ release_channel: ${{ needs.prepare.outputs.release_channel }}
+ rc_number: ${{ needs.prepare.outputs.rc_number }}
secrets: inherit
linux-arm:
@@ -83,6 +125,8 @@ jobs:
version: ${{ needs.prepare.outputs.version }}
hamlib_branch: "4.7.1"
arch: "aarch64"
+ release_channel: ${{ needs.prepare.outputs.release_channel }}
+ rc_number: ${{ needs.prepare.outputs.rc_number }}
secrets: inherit
windows:
@@ -91,6 +135,8 @@ jobs:
with:
version: ${{ needs.prepare.outputs.version }}
hamlib_branch: "4.7.1"
+ release_channel: ${{ needs.prepare.outputs.release_channel }}
+ rc_number: ${{ needs.prepare.outputs.rc_number }}
secrets: inherit
# ── Publish release + sync to public repo ──────────────────────────
@@ -205,7 +251,7 @@ jobs:
# that collide on basename across architectures — `gh release
# create` uses basenames as asset names and duplicates cause
# upload failures.
- FILES=$(find artifacts -maxdepth 2 -type f \
+ mapfile -t files < <(find artifacts -maxdepth 2 -type f \
\( -name "*.pkg" -o -name "*.AppImage" -o -name "*.deb" \
-o -name "*.exe" -o -name "*.tar.gz" -o -name "*.rpm" \))
# SemVer pre-release tags contain a hyphen after the version
@@ -219,7 +265,7 @@ jobs:
--title "WSJT-X ${{ needs.prepare.outputs.version }}" \
--generate-notes \
$PRERELEASE_FLAG \
- $FILES
+ "${files[@]}"
# ── Public mirror: GA only ─────────────────────────────────────────
# RC/beta tags (any tag carrying a '-' in the version, e.g.
@@ -303,11 +349,11 @@ jobs:
# Same asset filter as the internal release. Re-find rather than
# carrying a list — keeps the all-platforms-ready gate, internal
# release, and public release mechanically aligned on one filter.
- FILES=$(find artifacts -maxdepth 2 -type f \
+ mapfile -t files < <(find artifacts -maxdepth 2 -type f \
\( -name "*.pkg" -o -name "*.AppImage" -o -name "*.deb" \
-o -name "*.exe" -o -name "*.tar.gz" -o -name "*.rpm" \))
gh release create "$PUBLIC_TAG" \
-R WSJTX/wsjtx \
--title "WSJT-X ${VERSION}" \
--generate-notes \
- $FILES
+ "${files[@]}"