-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (44 loc) · 1.23 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
name: Build Project
on:
push:
paths:
- '**.cpp'
- '**.hpp'
- '**.c'
- '**.h'
pull_request:
paths:
- '**.cpp'
- '**.hpp'
- '**.c'
- '**.h'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add MSVC to PATH
uses: ilammy/msvc-dev-cmd@v1
- name: Install CMake
uses: lukka/get-cmake@latest
- name: Install vcpkg
uses: lukka/run-vcpkg@v10
with:
vcpkgGitCommitId: 'fb544875b93bffebe96c6f720000003234cfba08'
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
- name: Build
uses: lukka/run-cmake@v10
with:
configurePreset: 'default'
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=ccache','-DCMAKE_CXX_COMPILER_LAUNCHER=ccache','-DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded']"
buildPreset: 'default'
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Build
path: |
${{github.workspace}}/build/Module.dll
${{github.workspace}}/build/Module.pdb
if-no-files-found: warn
compression-level: 0