Skip to content

Commit

Permalink
Change runner to macos-13
Browse files Browse the repository at this point in the history
  • Loading branch information
marmos91 committed Jan 19, 2024
1 parent 3a6a723 commit 189c7d1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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")
Expand Down

0 comments on commit 189c7d1

Please sign in to comment.