diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..6448993 --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,36 @@ +name: Build Package for all Platforms + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: macos-15 + 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 }}