update #1060
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
buidJob: | |
name: buid | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@main | |
with: | |
submodules: recursive | |
# 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 | |
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 |