Skip to content

Commit

Permalink
Try splitting ObjC and Swift to different jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 committed Jan 12, 2024
1 parent 49dfc08 commit 3c5afb0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ jobs:
strategy:
matrix:
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: Xcode_15.1
language: [Swift, ObjC]
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
runs-on: ${{ matrix.os }}
Expand All @@ -51,7 +52,7 @@ jobs:
- name: Xcode
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
- name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Storage all)
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Storage${{ matrix.language }} all)

spm:
# Don't run on private repo unless it is a PR.
Expand Down
11 changes: 10 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ case "$product-$platform-$method" in
test
;;

Storage-*-xcodebuild)
StoragSwift-*-xcodebuild)
pod_gen FirebaseStorage.podspec --platforms=ios

# Add GoogleService-Info.plist to generated Test Wrapper App.
Expand All @@ -543,6 +543,15 @@ case "$product-$platform-$method" in
"${xcb_flags[@]}" \
test
fi
;;

StorageObjC-*-xcodebuild)
pod_gen FirebaseStorage.podspec --platforms=ios

# Add GoogleService-Info.plist to generated Test Wrapper App.
ruby ./scripts/update_xcode_target.rb gen/FirebaseStorage/Pods/Pods.xcodeproj \
AppHost-FirebaseStorage-Unit-Tests \
../../../FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist

if check_secrets; then
# Integration tests are only run on iOS to minimize flake failures.
Expand Down

0 comments on commit 3c5afb0

Please sign in to comment.