-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.13 KB
/
build.yml
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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
DEVELOPER_DIR: /Applications/Xcode.app
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: Build macOS
run: xcodebuild -scheme EasyMetalShader build -destination "generic/platform=macOS"
- name: Build iOS
run: xcodebuild -scheme EasyMetalShader build -destination "generic/platform=iOS"
test:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: Test macOS
run: xcodebuild -scheme EasyMetalShader test -destination "platform=macOS,arch=x86_64"
- name: Test iOS
run: xcodebuild -scheme EasyMetalShader test -destination "name=iPhone 14 Pro"
build-examples:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: Build macOS Example
run: cd Examples/ExampleMacOS && xcodebuild -scheme ExampleMacOS build -destination "generic/platform=macOS"
- name: Build iOS Example
run: cd Examples/ExampleiOS && xcodebuild -scheme ExampleiOS build -destination "name=iPhone 14 Pro"