Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial CI for visionOS #12578

Merged
merged 5 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/spm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
- os: macos-13
xcode: Xcode_15.2
test: spmbuildonly
- os: macos-14
xcode: Xcode_15.2
test: spmbuildonly
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -84,12 +87,17 @@ jobs:
matrix:
# Full set of Firebase-Package tests only run on iOS. Run subset on other platforms.
target: [tvOS, macOS, catalyst]
os: [macos-12, macos-13]
os: [macos-12, macos-13, macos-14]
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: Xcode_15.2
- os: macos-14
xcode: Xcode_15.2
- os: macos-14
target: visionOS
xcode: Xcode_15.2
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
33 changes: 6 additions & 27 deletions .github/workflows/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,36 +64,18 @@ jobs:
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
strategy:
matrix:
target: [iOS, tvOS, macOS, catalyst, watchOS]
os: [macos-12, macos-13, macos-14]
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
xcode: Xcode_15.2
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
with:
cache_key: ${{ matrix.os }}
- name: Xcode
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
- name: Initialize xcodebuild
run: scripts/setup_spm_tests.sh
- name: Swift Unit Tests
run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseStorageUnit iOS spm

spm-cron:
# Don't run on private repo.
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
strategy:
matrix:
target: [tvOS, macOS, catalyst, watchOS]
os: [macos-12, macos-13]
include:
- os: macos-12
xcode: Xcode_14.2
- os: macos-13
- os: macos-14
xcode: Xcode_15.2
- os: macos-14
xcode: Xcode_15.2
target: visionOS
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -121,9 +103,6 @@ jobs:
- swift: swift
os: macos-13
xcode: Xcode_15.2
- swift: swift
os: macos-13
xcode: Xcode_15.2
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down
3 changes: 2 additions & 1 deletion SwiftPMTests/swift-test/all-imports.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ class importTest: XCTestCase {
#else
// Device model should show up as x86_64 for iOS, tvOS, and watchOS
// simulators.
XCTAssertEqual(GULAppEnvironmentUtil.deviceModel(), "x86_64")
let model = GULAppEnvironmentUtil.deviceModel()
XCTAssertTrue(model == "x86_64" || model == "arm64")
paulb777 marked this conversation as resolved.
Show resolved Hide resolved
#endif

let versionParts = FirebaseVersion().split(separator: ".")
Expand Down
Loading