|
|
@@ -25,40 +25,40 @@ concurrency:
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
jobs:
|
|
|
- package-release:
|
|
|
- # Don't run on private repo.
|
|
|
- if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
|
|
|
- runs-on: macOS-10.15
|
|
|
- steps:
|
|
|
- - uses: actions/checkout@v2
|
|
|
- - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
|
|
|
- with:
|
|
|
- cache_key: ${{ matrix.os }}
|
|
|
- - name: Xcode 12.2
|
|
|
- run: sudo xcode-select -s /Applications/Xcode_12.2.app/Contents/Developer
|
|
|
- - name: Setup Bundler
|
|
|
- run: ./scripts/setup_bundler.sh
|
|
|
- - name: ZipBuildingTest
|
|
|
- run: |
|
|
|
- mkdir -p release_zip_dir
|
|
|
- sh -x scripts/build_zip.sh release_zip_dir \
|
|
|
- "${{ github.event.inputs.custom_spec_repos || 'https://github.com/firebase/SpecsStaging.git' }}"
|
|
|
- - uses: actions/upload-artifact@v1
|
|
|
- with:
|
|
|
- name: Firebase-release-zip-zip
|
|
|
- # Zip the entire output directory since the builder adds subdirectories we don't know the
|
|
|
- # name of.
|
|
|
- path: release_zip_dir
|
|
|
-
|
|
|
+ # TODO: Reenable package-release once v9 merges to master.
|
|
|
+ # package-release:
|
|
|
+ # # Don't run on private repo.
|
|
|
+ # if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
|
|
|
+ # runs-on: macos-11
|
|
|
+ # steps:
|
|
|
+ # - uses: actions/checkout@v2
|
|
|
+ # - uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
|
|
|
+ # with:
|
|
|
+ # cache_key: ${{ matrix.os }}
|
|
|
+ # - name: Xcode 13.2.1
|
|
|
+ # run: sudo xcode-select -s /Applications/Xcode_13.2.1.app/Contents/Developer
|
|
|
+ # - name: Setup Bundler
|
|
|
+ # run: ./scripts/setup_bundler.sh
|
|
|
+ # - name: ZipBuildingTest
|
|
|
+ # run: |
|
|
|
+ # mkdir -p release_zip_dir
|
|
|
+ # sh -x scripts/build_zip.sh release_zip_dir \
|
|
|
+ # "${{ github.event.inputs.custom_spec_repos || 'https://github.com/firebase/SpecsStaging.git' }}"
|
|
|
+ # - uses: actions/upload-artifact@v1
|
|
|
+ # with:
|
|
|
+ # name: Firebase-release-zip-zip
|
|
|
+ # # Zip the entire output directory since the builder adds subdirectories we don't know the
|
|
|
+ # # name of.
|
|
|
+ # path: release_zip_dir
|
|
|
|
|
|
build:
|
|
|
# Don't run on private repo unless it is a PR.
|
|
|
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
|
|
|
- runs-on: macOS-10.15
|
|
|
+ runs-on: macos-11
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- - name: Xcode 12.2
|
|
|
- run: sudo xcode-select -s /Applications/Xcode_12.2.app/Contents/Developer
|
|
|
+ - name: Xcode 13.2.1
|
|
|
+ run: sudo xcode-select -s /Applications/Xcode_13.2.1.app/Contents/Developer
|
|
|
- name: Build
|
|
|
run: |
|
|
|
cd ReleaseTooling
|
|
|
@@ -68,14 +68,14 @@ jobs:
|
|
|
# Don't run on private repo.
|
|
|
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
|
|
|
needs: build
|
|
|
- runs-on: macOS-10.15
|
|
|
+ runs-on: macos-11
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- uses: mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
|
|
|
with:
|
|
|
cache_key: ${{ matrix.os }}
|
|
|
- - name: Xcode 12.2
|
|
|
- run: sudo xcode-select -s /Applications/Xcode_12.2.app/Contents/Developer
|
|
|
+ - name: Xcode 13.2.1
|
|
|
+ run: sudo xcode-select -s /Applications/Xcode_13.2.1.app/Contents/Developer
|
|
|
- name: Setup Bundler
|
|
|
run: ./scripts/setup_bundler.sh
|
|
|
- name: ZipBuildingTest
|
|
|
@@ -100,7 +100,7 @@ jobs:
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
FRAMEWORK_DIR: "Firebase-actions-dir"
|
|
|
SDK: "ABTesting"
|
|
|
- runs-on: macOS-10.15
|
|
|
+ runs-on: macos-11
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- name: Get framework dir
|
|
|
@@ -150,9 +150,6 @@ jobs:
|
|
|
runs-on: macos-11
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- # Facebook SDK 12.0.1 requires Xcode 13
|
|
|
- - name: Xcode 13.0
|
|
|
- run: sudo xcode-select -s /Applications/Xcode_13.0.app/Contents/Developer
|
|
|
- name: Get framework dir
|
|
|
uses: actions/download-artifact@v1
|
|
|
with:
|
|
|
@@ -191,7 +188,7 @@ jobs:
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
FRAMEWORK_DIR: "Firebase-actions-dir"
|
|
|
SDK: "Config"
|
|
|
- runs-on: macOS-10.15
|
|
|
+ runs-on: macos-11
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- name: Get framework dir
|
|
|
@@ -204,10 +201,9 @@ jobs:
|
|
|
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
|
|
|
- name: Setup Swift Quickstart
|
|
|
|
|
|
- run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="FirebaseRemoteConfigSwift FirebaseSharedSwift" scripts/setup_quickstart_framework.sh \
|
|
|
+ run: SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
|
|
|
"${HOME}"/ios_frameworks/Firebase/FirebaseRemoteConfig/* \
|
|
|
- "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/* \
|
|
|
- "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/*
|
|
|
+ "${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
|
|
|
- name: Install Secret GoogleService-Info.plist
|
|
|
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-config.plist.gpg \
|
|
|
quickstart-ios/config/GoogleService-Info.plist "$plist_secret"
|
|
|
@@ -231,7 +227,7 @@ jobs:
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
FRAMEWORK_DIR: "Firebase-actions-dir"
|
|
|
SDK: "Crashlytics"
|
|
|
- runs-on: macOS-10.15
|
|
|
+ runs-on: macos-11
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- name: Get framework dir
|
|
|
@@ -255,6 +251,8 @@ jobs:
|
|
|
chmod +x quickstart-ios/crashlytics/LegacyCrashlyticsQuickstart/upload-symbols
|
|
|
# TODO(#8057): Restore Swift Quickstart
|
|
|
# - name: Setup swift quickstart
|
|
|
+ # env:
|
|
|
+ # LEGACY: true
|
|
|
# run: |
|
|
|
# SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" NON_FIREBASE_SDKS="ReachabilitySwift" scripts/setup_quickstart_framework.sh \
|
|
|
# "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/*
|
|
|
@@ -265,7 +263,10 @@ jobs:
|
|
|
env:
|
|
|
LEGACY: true
|
|
|
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}")
|
|
|
+ # TODO(#8057): Restore Swift Quickstart
|
|
|
# - name: Test Swift Quickstart
|
|
|
+ # env:
|
|
|
+ # LEGACY: true
|
|
|
# run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart_framework.sh "${SDK}" swift)
|
|
|
- name: Remove data before upload
|
|
|
env:
|
|
|
@@ -287,7 +288,7 @@ jobs:
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
FRAMEWORK_DIR: "Firebase-actions-dir"
|
|
|
SDK: "Database"
|
|
|
- runs-on: macOS-10.15
|
|
|
+ runs-on: macos-11
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- name: Get framework dir
|
|
|
@@ -329,7 +330,7 @@ jobs:
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
FRAMEWORK_DIR: "Firebase-actions-dir"
|
|
|
SDK: "DynamicLinks"
|
|
|
- runs-on: macOS-10.15
|
|
|
+ runs-on: macos-11
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- name: Get framework dir
|
|
|
@@ -376,7 +377,7 @@ jobs:
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
FRAMEWORK_DIR: "Firebase-actions-dir"
|
|
|
SDK: "Firestore"
|
|
|
- runs-on: macOS-10.15
|
|
|
+ runs-on: macos-11
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- name: Get framework dir
|
|
|
@@ -388,7 +389,7 @@ jobs:
|
|
|
mkdir -p "${HOME}"/ios_frameworks/
|
|
|
find "${GITHUB_WORKSPACE}/${FRAMEWORK_DIR}" -name "Firebase*latest.zip" -exec unzip -d "${HOME}"/ios_frameworks/ {} +
|
|
|
- name: Setup quickstart
|
|
|
- run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="SDWebImage FirebaseAuthUI FirebaseEmailAuthUI FirebaseFirestoreSwift" scripts/setup_quickstart_framework.sh \
|
|
|
+ run: SAMPLE="$SDK" TARGET="${SDK}Example" NON_FIREBASE_SDKS="SDWebImage FirebaseAuthUI FirebaseEmailAuthUI" scripts/setup_quickstart_framework.sh \
|
|
|
"${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/* \
|
|
|
"${HOME}"/ios_frameworks/Firebase/FirebaseFirestore/* \
|
|
|
"${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
|
|
|
@@ -416,7 +417,7 @@ jobs:
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
FRAMEWORK_DIR: "Firebase-actions-dir"
|
|
|
SDK: "InAppMessaging"
|
|
|
- runs-on: macOS-10.15
|
|
|
+ runs-on: macos-11
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- name: Get framework dir
|
|
|
@@ -459,7 +460,7 @@ jobs:
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
FRAMEWORK_DIR: "Firebase-actions-dir"
|
|
|
SDK: "Messaging"
|
|
|
- runs-on: macOS-10.15
|
|
|
+ runs-on: macos-11
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- name: Get framework dir
|
|
|
@@ -501,7 +502,7 @@ jobs:
|
|
|
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
|
|
FRAMEWORK_DIR: "Firebase-actions-dir"
|
|
|
SDK: "Storage"
|
|
|
- runs-on: macOS-10.15
|
|
|
+ runs-on: macos-11
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- name: Get framework dir
|
|
|
@@ -518,8 +519,7 @@ jobs:
|
|
|
"${HOME}"/ios_frameworks/Firebase/FirebaseAuth/* \
|
|
|
"${HOME}"/ios_frameworks/Firebase/FirebaseAnalytics/*
|
|
|
- name: Setup swift quickstart
|
|
|
- run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" NON_FIREBASE_SDKS="FirebaseStorageSwift" scripts/setup_quickstart_framework.sh \
|
|
|
- "${HOME}"/ios_frameworks/Firebase/NonFirebaseSDKs/*
|
|
|
+ run: SAMPLE="$SDK" TARGET="${SDK}ExampleSwift" scripts/setup_quickstart_framework.sh
|
|
|
- name: Install Secret GoogleService-Info.plist
|
|
|
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-storage.plist.gpg \
|
|
|
quickstart-ios/storage/GoogleService-Info.plist "$plist_secret"
|