Skip to content

Commit 8afd688

Browse files
authored
Configured CI to run on both x86_64 and arm64 architectures
1 parent 8a0929c commit 8afd688

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/swift.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will build a Swift project
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3-
41
name: Swift
52

63
on:
@@ -11,12 +8,18 @@ on:
118

129
jobs:
1310
build:
14-
name: Build and Test on ${{ matrix.swift }}
15-
runs-on: macos-latest
11+
# Run build and tests for each Swift version and OS combination
12+
name: Build and Test on ${{ matrix.swift }} / ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
1614

1715
strategy:
1816
matrix:
19-
swift: [5.10, 6.0]
17+
os:
18+
- macos-13 # x86_64 (Intel)
19+
- macos-latest # arm64 (Apple Silicon)
20+
swift:
21+
- 5.10 # Xcode 15.3
22+
- 6.0 # Xcode 16
2023

2124
steps:
2225
- uses: actions/checkout@v4
@@ -25,8 +28,10 @@ jobs:
2528
run: |
2629
case "${{ matrix.swift }}" in
2730
5.10) sudo xcode-select -s /Applications/Xcode_15.3.app ;;
28-
6.0) sudo xcode-select -s /Applications/Xcode_16.0.app ;;
31+
6.0) sudo xcode-select -s /Applications/Xcode_16.0.app ;;
2932
esac
33+
34+
# Print selected Xcode version for confirmation
3035
xcodebuild -version
3136
3237
- name: Build

0 commit comments

Comments
 (0)