From 252bf5fa5b360f24c325335a25444afd06480c7f Mon Sep 17 00:00:00 2001 From: Dzmitry Neviadomski Date: Sun, 8 Aug 2021 22:25:20 +0300 Subject: [PATCH] Do not use signing capabilities in GitHub Actions build. We only need to check if changes are buildable. --- .github/workflows/debug.yml | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index ecff9adb8..7c4df0210 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -19,43 +19,16 @@ jobs: uses: actions/checkout@v2 with: submodules: recursive - - name: Setup DEVELOPMENT_TEAM - env: - MAC_DEVELOPMENT_TEAM: ${{ secrets.MAC_DEVELOPMENT_TEAM }} - run: | - echo "DEVELOPMENT_TEAM = $MAC_DEVELOPMENT_TEAM" > Xcode-config/DEVELOPMENT_TEAM.xcconfig - - name: Install application certificate - env: - BUILD_CERTIFICATE_BASE64: ${{ secrets.MAC_DEVELOPMENT_CERTIFICATE_P12 }} - APPLICATION_CERTIFICATE_BASE64: ${{ secrets.MAC_APPLICATION_CERTIFICATE_P12 }} - P12_PASSWORD: ${{ secrets.MAC_APPLICATION_CERTIFICATE_PASSPHRASE }} - KEYCHAIN_PASSWORD: ${{ secrets.MAC_KEYCHAIN_PASSWORD }} - run: | - # create variables - BUILD_CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12 - APP_CERTIFICATE_PATH=$RUNNER_TEMP/app_certificate.p12 - KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db - - # import certificates from secrets - echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode --output $BUILD_CERTIFICATE_PATH - echo -n "$APPLICATION_CERTIFICATE_BASE64" | base64 --decode --output $APP_CERTIFICATE_PATH - - # create temporary keychain - security create-keychain -p $KEYCHAIN_PASSWORD $KEYCHAIN_PATH - security set-keychain-settings -lut 21600 $KEYCHAIN_PATH - security unlock-keychain -p $KEYCHAIN_PASSWORD $KEYCHAIN_PATH - - # import certificates to keychain - security import $BUILD_CERTIFICATE_PATH -P $P12_PASSWORD -A -t cert -f pkcs12 -k $KEYCHAIN_PATH - security import $APP_CERTIFICATE_PATH -P $P12_PASSWORD -A -t cert -f pkcs12 -k $KEYCHAIN_PATH - security list-keychain -d user -s $KEYCHAIN_PATH - name: Run xcodebuild run: > xcodebuild -quiet + -project Cog.xcodeproj -scheme Cog -configuration Debug + -destination 'platform=macOS,arch=x86_64' -derivedDataPath $XCODE_DERIVEDDATA_PATH + CODE_SIGNING_ALLOWED=NO build - name: Package archive run: >