Skip to content

ci: add .spi.yml for Swift Package Index build matrix #4

ci: add .spi.yml for Swift Package Index build matrix

ci: add .spi.yml for Swift Package Index build matrix #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-macos:
name: swift test (macOS)
runs-on: macos-15
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Show toolchain
run: |
swift --version
xcodebuild -version
- name: swift build
run: swift build
- name: swift test
run: swift test
build-tvos:
name: xcodebuild (tvOS Simulator)
runs-on: macos-15
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build for tvOS Simulator
run: |
xcodebuild build \
-scheme AetherEngine \
-destination 'generic/platform=tvOS Simulator' \
-derivedDataPath .build/xcode-tvos \
CODE_SIGNING_ALLOWED=NO
build-ios:
name: xcodebuild (iOS Simulator)
runs-on: macos-15
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build for iOS Simulator
run: |
xcodebuild build \
-scheme AetherEngine \
-destination 'generic/platform=iOS Simulator' \
-derivedDataPath .build/xcode-ios \
CODE_SIGNING_ALLOWED=NO