-
-
Notifications
You must be signed in to change notification settings - Fork 38
37 lines (30 loc) · 886 Bytes
/
xcode-template.yml
File metadata and controls
37 lines (30 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 }}"