-
Notifications
You must be signed in to change notification settings - Fork 7
73 lines (60 loc) · 1.82 KB
/
windows.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Windows Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: "windows"
cancel-in-progress: true
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: 'powershell'
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Install ninja-build tool (must be after Qt due PATH changes)
uses: turtlesec-no/get-ninja@main
- name: Make sure MSVC is found when Ninja generator is in use
uses: ilammy/msvc-dev-cmd@v1
- name: Install 7zip
run: choco install 7zip.install
- name: Install Mesa
shell: cmd
run: |
curl.exe -L --output mesa.7z --url https://github.com/pal1000/mesa-dist-win/releases/download/20.3.2/mesa3d-20.3.2-release-msvc.7z
"C:\Program Files\7-Zip\7z.exe" x mesa.7z
mklink opengl32.dll "x64\opengl32.dll"
mklink libglapi.dll "x64\libglapi.dll"
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
version: '6.8.0'
host: windows
target: 'desktop'
arch: 'win64_msvc2022_64'
dir: '${{github.workspace}}/qt'
install-deps: 'true'
- name: Configure
env:
CMAKE_PREFIX_PATH: ${{env.Qt6_Dir}}/lib/cmake
run: >
cmake -G Ninja
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DALP_ENABLE_POSITIONING=false
-DALP_ENABLE_ASSERTS=ON
-B ./build
-S ./MaterialTester
- name: Build
run: cmake --build ./build --config Debug
# - name: Unittests on Windows
# env:
# MESA_GL_VERSION_OVERRIDE: 3.3
# run: |
# ./build/alp_external/radix/unittests/unittests_radix.exe
# ./build/unittests/unittests_nucleus.exe