Build Package in CI #6
This file contains hidden or 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
| name: Build Package for all Platforms | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| strategy: | |
| matrix: | |
| triple: | |
| - "arm64-apple-ios" | |
| - "x86_64-apple-macosx" | |
| - "arm64-apple-watchos" | |
| - "arm64-apple-ios-macabi" | |
| - "arm64-apple-visionos" | |
| - "arm64-apple-tvos" | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Select Latest Xcode 16 | |
| run: | | |
| sudo xcode-select -s /Applications/Xcode_16.app/Contents/Developer || \ | |
| sudo xcode-select -s /Applications/Xcode.app/Contents/Developer | |
| xcodebuild -version | |
| swift --version | |
| - name: Build Swift Package | |
| run: | | |
| swift build --triple ${{ matrix.triple }} |