-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (45 loc) · 1.2 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Build and Publish Artifacts
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Cache VCPKG
uses: actions/cache@v3
with:
key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json', 'vcpkg-configuration.json') }}
path: |
build/x64-debug/vcpkg_installed
build/x64-release/vcpkg_installed
- name: Cache Externals
uses: actions/cache@v3
with:
key: externals-${{ runner.os }}-${{ hashFiles('.gitmodules') }}
path: |
build/x64-debug/external
build/x64-release/external
- name: Configure CMake
run: |
cmake --preset x64-release
- name: Build and Install ParallaxGen
run: |
cmake --build build/x64-release --target install
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: parallaxgen-artifacts-${{ github.sha }}
path: install/x64-release