From a61a4dc16ea4e706cc29f4cab786924812c4f2a5 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Fri, 27 Mar 2020 14:44:16 +0100 Subject: [PATCH] GitHub workflows: sign also CI if key avail. [mac] --- .github/scripts/macOS/sign.sh | 6 +++++- .github/workflows/ccpp.yml | 10 ++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/scripts/macOS/sign.sh b/.github/scripts/macOS/sign.sh index 177f2fe31..6b64a69e4 100755 --- a/.github/scripts/macOS/sign.sh +++ b/.github/scripts/macOS/sign.sh @@ -11,7 +11,11 @@ DEVELOPER_USERNAME=martin.pulec@cesnet.cz if [ -z "$apple_key_p12_b64" -o -z "$altool_pass" ]; then echo "Could not find key to sign the application" 2>&1 - exit 1 + if [ "$GITHUB_WORKFLOW" = nightly ]; then + exit 1 + else + exit 0 + fi fi # Import keys diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index a0b70ef07..2d0591a77 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -56,6 +56,8 @@ jobs: name: run macOS runs-on: macos-latest env: + altool_pass: ${{ secrets.altool_pass }} + apple_key_p12_b64: ${{ secrets.apple_key_p12_b64 }} sdk_pass: ${{ secrets.sdk_pass }} steps: @@ -66,8 +68,12 @@ jobs: run: .github/scripts/macOS/prepare.sh - name: configure run: ./autogen.sh --enable-qt --with-live555=/usr/local - - name: make - run: make -j4 osx-gui-dmg + - name: make bundle + run: make -j4 gui-bundle + - name: sign+notarize + run: .github/scripts/macOS/sign.sh gui/QT/uv-qt.app + - name: make dmg + run: make osx-gui-dmg - name: make check run: make check - name: make distcheck