-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 1.21 KB
/
ci.yml
File metadata and controls
44 lines (36 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Xcode ${{ matrix.xcode }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-13 # x86_64 (Intel)
xcode: 15.2 # Swift 5.9.2
- os: macos-14 # arm64 (Apple Silicon)
xcode: 15.3 # Swift 5.10
- os: macos-latest # arm64 (Apple Silicon)
xcode: 16.2 # Swift 6.0
steps:
- uses: actions/checkout@v4
- name: Select Xcode version ${{ matrix.xcode }}
run: |
sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
xcodebuild -version
- name: Print system and architecture info
run: |
echo "Architecture: $(uname -m)"
echo "Processor: $(sysctl -n machdep.cpu.brand_string 2>/dev/null || echo 'N/A')"
echo "macOS Version: $(sw_vers -productVersion) ($(sw_vers -buildVersion))"
echo "Xcode Path: $(xcode-select -p)"
echo "macOS SDK: $(xcrun --sdk macosx --show-sdk-path)"
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v