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

Move CI to macos-14 and use Xcode 14.2. #632

Merged
merged 1 commit into from
Feb 28, 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: 8 additions & 2 deletions .github/workflows/cocoapods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ jobs:
# time, so this covers the Core spec and tests.
pod-lib-lint-core:
name: CocoaPods lib lint Core
runs-on: macos-latest
runs-on: macos-14
strategy:
fail-fast: false
matrix:
pod_configuration: ["Debug", "Release"]
extra_flags: ["", "--use-static-frameworks"]
steps:
# The "macos-14" image defaults to 15.0.1, select the newer Xcode.
- name: Xcode version
run: sudo xcode-select -switch /Applications/Xcode_15.2.app
- uses: actions/checkout@v4
- name: "iOS, macOS, and tvOS"
run: |
Expand All @@ -55,12 +58,15 @@ jobs:
# resources without any real gain.
pod-lib-lint-subspecs:
name: CocoaPods lib lint SubSpecs
runs-on: macos-latest
runs-on: macos-14
strategy:
fail-fast: false
matrix:
pod_configuration: ["Debug", "Release"]
steps:
# The "macos-14" image defaults to 15.0.1, select the newer Xcode.
- name: Xcode version
run: sudo xcode-select -switch /Applications/Xcode_15.2.app
- uses: actions/checkout@v4
- name: "macOS"
run: |
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ on:

jobs:
examples:
runs-on: macos-latest
runs-on: macos-14
strategy:
fail-fast: false
matrix:
SAMPLE: ["Calendar", "Drive", "YouTube", "Storage"]
steps:
# The "macos-14" image defaults to 15.0.1, select the newer Xcode.
- name: Xcode version
run: sudo xcode-select -switch /Applications/Xcode_15.2.app
- uses: actions/checkout@v4
- name: Build Debug
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/service_generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:

jobs:
swift:
runs-on: macos-latest
runs-on: macos-14
strategy:
fail-fast: false
matrix:
Expand All @@ -43,12 +43,15 @@ jobs:
swift build --configuration ${{ matrix.CONFIGURATION }}

xcodebuild:
runs-on: macos-latest
runs-on: macos-14
strategy:
fail-fast: false
matrix:
CONFIGURATION: ["Debug", "Release"]
steps:
# The "macos-14" image defaults to 15.0.1, select the newer Xcode.
- name: Xcode version
run: sudo xcode-select -switch /Applications/Xcode_15.2.app
- uses: actions/checkout@v4
- name: Build ServiceGenerator
run: |
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/swiftpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ on:
jobs:
swift:
# The swift command line only support build/testing for macOS on.
runs-on: macos-latest
runs-on: macos-14
strategy:
fail-fast: false
matrix:
CONFIGURATION: ["debug", "release"]
steps:
# The "macos-14" image defaults to 15.0.1, select the newer Xcode.
- name: Xcode version
run: sudo xcode-select -switch /Applications/Xcode_15.2.app
- uses: actions/checkout@v4
- name: Build and Test Library
run: |
Expand All @@ -40,20 +43,23 @@ jobs:
xcodebuild:
# Job(s) to build for all the platforms to ensure that is working and the
# tests are passing.
runs-on: macos-latest
runs-on: macos-14
strategy:
fail-fast: false
matrix:
PLATFORM: ["ios", "macos", "tvos", "watchos"]
CONFIGURATION: ["Debug", "Release"]
steps:
# The "macos-14" image defaults to 15.0.1, select the newer Xcode.
- name: Xcode version
run: sudo xcode-select -switch /Applications/Xcode_15.2.app
- uses: actions/checkout@v4
- name: Build and Test Library
run: |
set -eu
case "${{matrix.PLATFORM}}" in
ios)
DESTINATION="platform=iOS Simulator,name=iPhone 8,OS=latest"
DESTINATION="platform=iOS Simulator,name=iPhone 14,OS=latest"
;;
macos)
DESTINATION="platform=macOS"
Expand Down