summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-05-03 21:33:16 +0200
committerChristoph Berg <myon@debian.org>2026-05-03 21:33:16 +0200
commit71eb666b36ddc267dca42e389b5cd25f2fc7a42c (patch)
tree6a521dc1dc3aa9f3f2a9e912f65276dfc00bf943 /.github/workflows/ci.yml
parentf647d78463c1250ce9c99af664615fafccf5e959 (diff)
New upstream version 3.0.1upstream/3.0.1
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml77
1 files changed, 77 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..52592fb4
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,77 @@
+name: CI
+
+on:
+ push:
+ branches: [develop]
+ pull_request:
+ branches: [develop]
+ workflow_dispatch:
+
+jobs:
+ # Single source of truth for the project version string: read it from
+ # CMakeLists.txt so CI and release.yml cannot disagree. Strip the
+ # 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:
+ runs-on: ubuntu-latest
+ outputs:
+ version: ${{ steps.v.outputs.version }}
+ steps:
+ - uses: actions/checkout@v6
+ - id: v
+ run: |
+ VERSION=$(grep -E '^\s*VERSION\s+[0-9]' CMakeLists.txt | head -1 | awk '{print $2}' | cut -d. -f1-3)
+ if [ -z "$VERSION" ]; then
+ echo "::error::Could not derive VERSION from CMakeLists.txt"
+ exit 1
+ fi
+ echo "Derived version from CMakeLists.txt: $VERSION"
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
+
+ macos:
+ needs: prepare
+ uses: ./.github/workflows/build-macos.yml
+ with:
+ version: ${{ needs.prepare.outputs.version }}
+ hamlib_branch: "4.7.1"
+ arch: "arm64"
+ runner: "macos-15"
+ deployment_target: "11.0"
+ secrets: inherit
+
+ macos-intel:
+ needs: prepare
+ uses: ./.github/workflows/build-macos.yml
+ with:
+ version: ${{ needs.prepare.outputs.version }}
+ hamlib_branch: "4.7.1"
+ arch: "x86_64"
+ runner: "macos-15-intel"
+ deployment_target: "10.13"
+ secrets: inherit
+
+ linux:
+ needs: prepare
+ uses: ./.github/workflows/build-linux.yml
+ with:
+ version: ${{ needs.prepare.outputs.version }}
+ hamlib_branch: "4.7.1"
+ arch: "x86_64"
+ secrets: inherit
+
+ linux-arm:
+ needs: prepare
+ uses: ./.github/workflows/build-linux.yml
+ with:
+ version: ${{ needs.prepare.outputs.version }}
+ hamlib_branch: "4.7.1"
+ arch: "aarch64"
+ secrets: inherit
+
+ windows:
+ needs: prepare
+ uses: ./.github/workflows/build-windows.yml
+ with:
+ version: ${{ needs.prepare.outputs.version }}
+ hamlib_branch: "4.7.1"
+ secrets: inherit