-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.68 KB
/
ci-develop.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: develop
on:
workflow_dispatch:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
config-matrix:
runs-on: [ windows-latest ]
name: "Build and Test"
strategy:
matrix:
config: [ Debug, Release, Dist ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Premake
uses: abel0b/setup-premake@v2.3
with:
version: "5.0.0-beta2"
path: Vendor/Premake/Bin
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.3.1
- name: Cache VulkanSDK
id: cache-vulkansdk
uses: actions/cache@v4
with:
path: "C:/VulkanSDK"
key: vulkansdk
- name: Download and Install VulkanSDK
if: steps.cache-vulkansdk.outputs.cache-hit != 'true'
shell: pwsh
run: |
Invoke-WebRequest -Uri https://sdk.lunarg.com/sdk/download/1.3.275.0/windows/VulkanSDK-1.3.275.0-Installer.exe -OutFile VulkanSDK.exe
.\VulkanSDK.exe --accept-licenses --default-answer --confirm-command install com.lunarg.vulkan.debug
- name: Run Premake
run: .\Vendor\Premake\Bin\Premake5.exe vs2022
- name: "Build"
run: msbuild /m /p:Configuration=${{ matrix.config }} EppoEngine.sln
- name: "Test"
run: .\Bin\${{ matrix.config }}-windows-x86_64\EppoTesting\EppoTesting.exe --gtest_output="xml:${{env.RUNNER_TEMP}}\testoutput.xml"
- name: "Save test output"
uses: actions/upload-artifact@v3
with:
name: TestOutput-${{ matrix.config }}
path: ${{env.RUNNER_TEMP}}/testoutput.xml