update #1056
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 |