(Go: >> BACK << -|- >> HOME <<)

Skip to content

Commit

Permalink
Move CI to macos-14 and use Xcode 14.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvl committed Feb 28, 2024
1 parent 8066a94 commit 430f209
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
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

0 comments on commit 430f209

Please sign in to comment.