Update build-tool.yml #1039
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
name: Xcode template | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build for ${{ matrix.config.name }} | |
runs-on: macOS-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { | |
name: "iOS", | |
scheme: "Supernova iOS", | |
sdk: iphonesimulator | |
} | |
- { | |
name: "MacOS", | |
scheme: "Supernova macOS", | |
sdk: macosx | |
} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Xcode version | |
run: /usr/bin/xcodebuild -version | |
- name: Create assets dir if not exist | |
run: mkdir -p project/assets | |
- name: Build with Xcode | |
run: | | |
cd workspaces/xcode/ | |
xcodebuild build -sdk ${{ matrix.config.sdk }} -project Supernova.xcodeproj -configuration Debug -scheme "${{ matrix.config.scheme }}" |