Skip to content

Commit 953ef43

Browse files
committed
CI macOS: ensure that build is signed
Since the commit a1a1671 from March 6, it seems that the builds are not signed. In the main repo, it is assumed to sign the builds, however, so ensure that. + ensure also FEATURES are defined and non-empty (to ensure that environment.sh was run and env vars exported)
1 parent 7503a4b commit 953ef43

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/macos.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ jobs:
7474
- name: bootstrap
7575
run: .github/scripts/macOS/prepare.sh
7676
- name: configure
77-
run: "ARCH=$UG_ARCH ./autogen.sh $FEATURES || { RC=$?; cat config.log; exit $RC; }"
77+
run: "ARCH=$UG_ARCH ./autogen.sh ${FEATURES:?}
78+
|| { RC=$?; cat config.log; exit $RC; }"
7879
- name: make bundle
7980
run: make -j4 gui-bundle
8081
- name: make check
@@ -91,6 +92,11 @@ jobs:
9192
- name: sign+notarize
9293
if: env.KEY_CHAIN != null
9394
run: .github/scripts/macOS/sign.sh uv-qt.app
95+
- name: ensure sign+notarize in main repo
96+
if: env.KEY_CHAIN == null && github.repository == 'CESNET/UltraGrid'
97+
&& github.ref == 'refs/heads/master'
98+
run: "echo 'UltraGrid must be signed but key (set by environment.sh)\
99+
is missing && exit 1"
94100
- name: make dmg
95101
run: |
96102
for n in `seq 5`; do # do more attempts

0 commit comments

Comments
 (0)