blob: bf8c2203bb17d34cab6fcef1a7a9faf1240377b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
name: Build Selected Artifacts
on:
workflow_dispatch:
inputs:
targets:
description: "Artifact set to build"
required: true
type: choice
options:
- macos-arm64
- windows-x64
- macos-arm64-windows-x64
- linux-x64
- linux-arm64
- macos-x64
- all
default: macos-arm64
mode:
description: "Build selected artifacts immediately or gate them on Linux x64 first"
required: true
type: choice
options:
- artifact-now
- linux-smoke-first
default: artifact-now
recache:
description: "Force ccache to recompile and refresh cached objects"
required: false
type: boolean
default: false
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.targets }}-${{ inputs.mode }}
cancel-in-progress: false
permissions:
contents: read
packages: read
jobs:
prepare:
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
version: ${{ steps.v.outputs.version }}
linux_image_tag: ${{ steps.linux-image.outputs.image_tag }}
steps:
- uses: actions/checkout@v7
- id: v
run: |
STATE=$(python3 .github/scripts/release-policy.py read-state)
VERSION=$(jq -r .version <<<"$STATE")
echo "Derived version from release-state.txt: $VERSION"
echo "version=$VERSION" >> "$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
# In linux-smoke-first mode, this is both the cheap gate and a normal Linux
# x64 artifact build. Do not also run linux-x64 for the same dispatch.
linux-smoke-x64:
needs: [prepare]
if: inputs.mode == 'linux-smoke-first'
uses: ./.github/workflows/build-linux.yml
with:
version: ${{ needs.prepare.outputs.version }}
hamlib_branch: "4.7.2"
arch: "x86_64"
image_tag: ${{ needs.prepare.outputs.linux_image_tag }}
save_ccache: true
recache: ${{ inputs.recache }}
linux-x64:
needs: [prepare]
if: >-
inputs.mode != 'linux-smoke-first' &&
(inputs.targets == 'linux-x64' || inputs.targets == 'all')
uses: ./.github/workflows/build-linux.yml
with:
version: ${{ needs.prepare.outputs.version }}
hamlib_branch: "4.7.2"
arch: "x86_64"
image_tag: ${{ needs.prepare.outputs.linux_image_tag }}
save_ccache: true
recache: ${{ inputs.recache }}
linux-arm64:
needs: [prepare, linux-smoke-x64]
if: >-
always() &&
!cancelled() &&
needs.prepare.result == 'success' &&
(needs.linux-smoke-x64.result == 'success' || needs.linux-smoke-x64.result == 'skipped') &&
(inputs.targets == 'linux-arm64' || inputs.targets == 'all')
uses: ./.github/workflows/build-linux.yml
with:
version: ${{ needs.prepare.outputs.version }}
hamlib_branch: "4.7.2"
arch: "aarch64"
image_tag: ${{ needs.prepare.outputs.linux_image_tag }}
save_ccache: true
recache: ${{ inputs.recache }}
macos-arm64:
needs: [prepare, linux-smoke-x64]
if: >-
always() &&
!cancelled() &&
needs.prepare.result == 'success' &&
(needs.linux-smoke-x64.result == 'success' || needs.linux-smoke-x64.result == 'skipped') &&
(
inputs.targets == 'macos-arm64' ||
inputs.targets == 'macos-arm64-windows-x64' ||
inputs.targets == 'all'
)
uses: ./.github/workflows/build-macos.yml
with:
version: ${{ needs.prepare.outputs.version }}
hamlib_branch: "4.7.2"
arch: "arm64"
runner: "macos-15"
deployment_target: "11.0"
recache: ${{ inputs.recache }}
macos-x64:
needs: [prepare, linux-smoke-x64]
if: >-
always() &&
!cancelled() &&
needs.prepare.result == 'success' &&
(needs.linux-smoke-x64.result == 'success' || needs.linux-smoke-x64.result == 'skipped') &&
(inputs.targets == 'macos-x64' || inputs.targets == 'all')
uses: ./.github/workflows/build-macos.yml
with:
version: ${{ needs.prepare.outputs.version }}
hamlib_branch: "4.7.2"
arch: "x86_64"
runner: "macos-15-intel"
deployment_target: "10.13"
recache: ${{ inputs.recache }}
windows-x64:
needs: [prepare, linux-smoke-x64]
if: >-
always() &&
!cancelled() &&
needs.prepare.result == 'success' &&
(needs.linux-smoke-x64.result == 'success' || needs.linux-smoke-x64.result == 'skipped') &&
(
inputs.targets == 'windows-x64' ||
inputs.targets == 'macos-arm64-windows-x64' ||
inputs.targets == 'all'
)
uses: ./.github/workflows/build-windows.yml
with:
version: ${{ needs.prepare.outputs.version }}
hamlib_branch: "4.7.2"
recache: ${{ inputs.recache }}
|