-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.55 KB
/
main.yml
File metadata and controls
63 lines (52 loc) · 1.55 KB
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
60
61
62
63
name: Build StarEngine
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
GITHUB_WORKSPACE: ${{ github.workspace }}
SOLUTION_FILE_PATH: StarEngine.sln
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
configuration: [Debug, Release, Dist]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: 'starbounded-dev/StarEngine'
submodules: true
lfs: true
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Vulkan SDK
uses: jakoch/install-vulkan-sdk-action@v1.2.0
with:
vulkan_version: 1.3.296.0
optional_components: com.lunarg.vulkan.vma, com.lunarg.vulkan.debug, com.lunarg.vulkan.glm
install_runtime: true
cache: true
stripdown: true
install_swiftshader: false
install_lavapipe: false
- name: Set up MSBuild
uses: microsoft/setup-msbuild@v1.1
with:
msbuild-architecture: 'x64'
- name: Setup
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
cd scripts
python SetupAction.py
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
MSBuild ${{env.SOLUTION_FILE_PATH}} /m /p:Configuration=${{ matrix.configuration }} -fl -flp:logfile=logs/Build-${{ matrix.configuration }}.log