-
Notifications
You must be signed in to change notification settings - Fork 113
34 lines (31 loc) · 1.05 KB
/
main.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: build_and_test
on:
push:
branches:
- main
pull_request:
jobs:
windows:
runs-on: windows-2019
timeout-minutes: 5
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: Windows VS2019
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && msbuild.exe Cpp/Windows/ToyPathTracer.sln /p:Configuration=Release /p:CL_MPCount=2
shell: cmd
apple:
runs-on: macOS-latest
timeout-minutes: 5
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: macOS Xcode 13
run: |
echo "**** Building for macOS..."
xcodebuild -project Cpp/Apple/ToyPathTracer.xcodeproj -configuration Release -scheme 'ToyPathTracerMac' build
echo "**** Building for iOS..."
xcodebuild -project Cpp/Apple/ToyPathTracer.xcodeproj -configuration Release -scheme 'ToyPathTraceriOS' build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO"