-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.22 KB
/
main.yaml
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
name: build
on: [push, pull_request]
jobs:
build:
runs-on: windows-2022
name: build
steps:
- uses: actions/checkout@v3
- name: Check CMake version
run: cmake --version
- name: Setup MSVC environment
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
- name: Set up vcpkg
run: |
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat
echo "VCPKG_ROOT=$(pwd)" >> $GITHUB_ENV
- name: Setup vcpkg toolchain
run: cmake -D CMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT CMAKE_BUILD_TYPE=Release -S. -Bbuild -G Ninja
- name: Build 64bit release Executable
run: cmake --build ./build --config Release --target Gaboot --
- name: Check if Executable got built
run: if (-Not (Test-Path -path "build/Gaboot.exe")) {throw 1}
- name: Rename Executable to Gaboot-dev-{GITHUB_SHA}.exe
run: |
del Gaboot-dev-*.exe
ren Gaboot.exe Gaboot-dev-${{github.sha}}.exe
working-directory: build/
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: binary
path: build/Gaboot-dev-*.exe