From 189c7d11acb496a53ead9275f6721653dbf9184d Mon Sep 17 00:00:00 2001 From: Marco Moschettini Date: Fri, 19 Jan 2024 11:55:53 +0100 Subject: [PATCH] Change runner to macos-13 --- .github/workflows/build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f2c63d0..14e1c2d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: jobs: build: name: Build and analyse default scheme using xcodebuild command - runs-on: macos-latest + runs-on: macos-13 steps: - uses: maxim-lobanov/setup-xcode@v1 @@ -21,6 +21,8 @@ jobs: env: BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_DEVELOPMENT_BASE64 }} P12_PASSWORD: ${{ secrets.P12_DEVELOPMENT_PASSWORD }} + CUBBITDS3_DEVELOPMENT_PROVISIONING_PROFILE_BASE64: ${{ secrets.CUBBITDS3_DEVELOPMENT_PROVISIONING_PROFILE }} + CUBBITDS3_DEVELOPMENT_PROVIDER_PROVISIONING_PROFILE_BASE64: ${{ secrets.CUBBITDS3_DEVELOPMENT_PROVIDER_PROVISIONING_PROFILE }} KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} run: | # create variables @@ -29,6 +31,8 @@ jobs: # import certificate and provisioning profile from secrets echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH + echo -n "$CUBBITDS3_DEVELOPMENT_PROVISIONING_PROFILE_BASE4" | base64 --decode -o $PP_PATH + echo -n "$CUBBITDS3_DEVELOPMENT_PROVIDER_PROVISIONING_PROFILE_BASE64" | base64 --decode -o $PP_PATH # create temporary keychain security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH @@ -38,6 +42,10 @@ jobs: # import certificate to keychain security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH security list-keychain -d user -s $KEYCHAIN_PATH + + # apply provisioning profile + mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles + cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles - name: Set Default Scheme run: | scheme_list=$(xcodebuild -list -json | tr -d "\n")