Skip to content

Commit

Permalink
Update xcodebuild-or-fastlane.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Schmiedmayer <[email protected]>
  • Loading branch information
PSchmiedmayer authored Nov 9, 2024
1 parent 5587320 commit 4317c80
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions .github/workflows/xcodebuild-or-fastlane.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ on:
destination:
description: |
The destination parameter that should be passed to xcodebuild.
Defaults to the iOS simulator using an iPhone 15 Pro.
Defaults to the iOS simulator using an iPhone 16 Pro.
required: false
type: string
default: 'platform=iOS Simulator,name=iPhone 15 Pro'
default: 'platform=iOS Simulator,name=iPhone 16 Pro'
setupSimulators:
description: |
Flag indicating if all iOS simulators matching the `destination` input shoud be setup.
Expand Down Expand Up @@ -153,6 +153,12 @@ on:
Flag indicating if submodules should be automatically checked out.
required: false
type: boolean
checkout_lfs:
description: |
Flag indicating if git lfs should be used when running the check out step.
required: false
type: boolean
default: false
secrets:
BUILD_CERTIFICATE_BASE64:
description: |
Expand Down Expand Up @@ -220,6 +226,7 @@ jobs:
# This is GitHubs way of implementing ternary expressions (see https://docs.github.com/en/actions/learn-github-actions/expressions)
token: ${{ secrets.CHECKOUT_TOKEN != '' && secrets.CHECKOUT_TOKEN || github.token }}
submodules: ${{ inputs.checkout_submodules }}
lfs: ${{ inputs.checkout_lfs }}
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ inputs.xcodeversion }}
Expand All @@ -245,8 +252,6 @@ jobs:
- name: Setup NodeJS
if: ${{ !env.selfhosted && inputs.setupfirebaseemulator }}
uses: actions/setup-node@v4
with:
node-version: 22.6.x
- name: Setup Java
if: ${{ !env.selfhosted && inputs.setupfirebaseemulator }}
uses: actions/setup-java@v4
Expand All @@ -269,25 +274,25 @@ jobs:
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
PP_PATH=$RUNNER_TEMP/build_pp.mobileprovision
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db

Check failure on line 277 in .github/workflows/xcodebuild-or-fastlane.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

277:1 [trailing-spaces] trailing spaces
# Import Certificate and Provisioning Profile from Secrets
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
echo -n "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode -o $PP_PATH

Check failure on line 281 in .github/workflows/xcodebuild-or-fastlane.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

281:1 [trailing-spaces] trailing spaces
# Create a 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

Check failure on line 286 in .github/workflows/xcodebuild-or-fastlane.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

286:1 [trailing-spaces] trailing spaces
# Import Certificate to the Keychain
security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
security list-keychain -d user -s $KEYCHAIN_PATH

Check failure on line 290 in .github/workflows/xcodebuild-or-fastlane.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

290:1 [trailing-spaces] trailing spaces
# Apply Provisioning Profile
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
UUID=`grep UUID -A1 -a $PP_PATH | grep -io "[-A-F0-9]\{36\}"`
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles/$UUID.mobileprovision

Check failure on line 295 in .github/workflows/xcodebuild-or-fastlane.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

295:1 [trailing-spaces] trailing spaces
# Secondary Provisioning Profile
if [ -n "$BUILD_SECONDARY_PROVISION_PROFILE_BASE64" ]; then
PP_SECONDARY_PATH=$RUNNER_TEMP/build_pp_secondary.mobileprovision
Expand Down Expand Up @@ -335,25 +340,25 @@ jobs:
else
XCODECOMMAND="build"
fi

Check failure on line 343 in .github/workflows/xcodebuild-or-fastlane.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

343:1 [trailing-spaces] trailing spaces
if [ -z "${{ inputs.resultBundle }}" ]; then
RESULTBUNDLE=${{ inputs.scheme }}.xcresult
else
RESULTBUNDLE=${{ inputs.resultBundle }}
fi

Check failure on line 349 in .github/workflows/xcodebuild-or-fastlane.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

349:1 [trailing-spaces] trailing spaces
if [ "${{ inputs.buildConfig }}" = "Release" ]; then
ENABLE_TESTING_FLAG="-enable-testing"
else
ENABLE_TESTING_FLAG=""
fi

Check failure on line 355 in .github/workflows/xcodebuild-or-fastlane.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

355:1 [trailing-spaces] trailing spaces
if [ -n "${{ inputs.swiftVersion }}" ]; then
SWIFT_VERSION_FLAG="-swift-version ${{ inputs.swiftVersion }}"
else
SWIFT_VERSION_FLAG=""
fi

Check failure on line 361 in .github/workflows/xcodebuild-or-fastlane.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

361:1 [trailing-spaces] trailing spaces
set -o pipefail \
&& xcodebuild $XCODECOMMAND \
-scheme "${{ inputs.scheme }}" \
Expand All @@ -374,11 +379,11 @@ jobs:
if ${{ inputs.setupfirebaseemulator }}; then
# We try to do an npm install in the functions directory.
npm --prefix ./functions install || true

Check failure on line 382 in .github/workflows/xcodebuild-or-fastlane.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

382:1 [trailing-spaces] trailing spaces
echo -n "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_BASE64 }}" | base64 -d > "$RUNNER_TEMP/google-application-credentials.json"
export GOOGLE_APPLICATION_CREDENTIALS="$RUNNER_TEMP/google-application-credentials.json"
echo "Stored the Google application credentials at $GOOGLE_APPLICATION_CREDENTIALS"
if [ -n "${{ inputs.firebaseemulatorimport }}" ]; then
echo "Importing firebase emulator data from ${{ inputs.firebaseemulatorimport }}"
firebase emulators:exec -c ${{ inputs.firebasejsonpath }} --import=${{ inputs.firebaseemulatorimport }} 'fastlane ${{ inputs.fastlanelane }}'

Check warning on line 389 in .github/workflows/xcodebuild-or-fastlane.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

389:151 [line-length] line too long (161 > 150 characters)
Expand Down

0 comments on commit 4317c80

Please sign in to comment.