-
-
Notifications
You must be signed in to change notification settings - Fork 209
30 lines (29 loc) · 995 Bytes
/
build.yml
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
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
buidJob:
name: buid
runs-on: macos-14-arm64
steps:
- uses: actions/checkout@main
with:
submodules: 'true'
# https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md#xcode
- name: Set up Xcode
run: |
sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
xcode-select -p
xcodebuild -version
- name: Build
run: |
swift build -v
swift build --sdk `xcrun -sdk iphonesimulator -show-sdk-path` -Xswiftc -target -Xswiftc x86_64-apple-ios13.0-simulator
swift build --sdk `xcrun -sdk appletvsimulator -show-sdk-path` -Xswiftc -target -Xswiftc x86_64-apple-tvos13.0-simulator
swift build --sdk `xcrun -sdk xrsimulator -show-sdk-path` -Xswiftc -target -Xswiftc x86_64-apple-xros1.0-simulator
- name: Test
run: swift test -v