-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (37 loc) · 1.48 KB
/
windows-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
name: windows-build
on: [push]
jobs:
build-windows:
runs-on: windows-2019
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
defaults:
run:
shell: bash
steps:
- name: checkout
uses: actions/checkout@v4
- name: submodules
run: |
git config --global url."https://github.com/".insteadOf "git@github.com:"
git submodule update --init --recursive --depth 1
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: install-deps
run: |
pwd
echo "${{ github.workspace }}"
git clone https://github.com/MarkSchofield/WindowsToolchain.git ../WindowsToolchain
vcpkg install libpng:x64-windows-static glfw3:x64-windows-static glew:x64-windows-static freetype:x64-windows-static openal-soft:x64-windows-static libogg:x64-windows-static libvorbis:x64-windows-static shaderc spirv-cross
- name: configure
run: |
cmake --preset w32test -B build/test "${{ github.workspace }}"
#cmake --preset w32debug -B build/debug "${{ github.workspace }}"
- name: build
run: |
cmake --build build/test --parallel 4 --verbose
#cmake --build build/debug --parallel 4