-
Notifications
You must be signed in to change notification settings - Fork 233
65 lines (50 loc) · 1.85 KB
/
windows.yml
File metadata and controls
65 lines (50 loc) · 1.85 KB
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
name: windows
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
name: Build and Test (Windows) - ${{ matrix.os }}-${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
arch: x64
- os: windows-11-arm
arch: arm64
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: configure
run: cd test && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DPOLYSCOPE_BACKEND_OPENGL3_GLFW=ON -DPOLYSCOPE_BACKEND_OPENGL_MOCK=ON ..
- name: build
run: cd test/build && cmake --build "." --parallel
- name: run test
run: cd test/build && ./bin/Debug/polyscope-test.exe --gtest_catch_exceptions=0 backend=openGL_mock
# windows shared builds: disabled for now, link failure that I don't know how to debug in CI
# build_shared:
# if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
# name: Build Shared and Test (Windows) - ${{ matrix.os }}-${{ matrix.arch }}
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# include:
# - os: windows-latest
# arch: x64
# - os: windows-11-arm
# arch: arm64
# steps:
# - uses: actions/checkout@v1
# with:
# submodules: true
# - name: configure
# run: cd test && mkdir build && cd build && cmake -DBUILD_SHARED_LIBS=TRUE -DCMAKE_BUILD_TYPE=Debug -DPOLYSCOPE_BACKEND_OPENGL3_GLFW=ON -DPOLYSCOPE_BACKEND_OPENGL_MOCK=ON ..
# - name: build
# run: cd test/build && cmake --build "." --parallel
# - name: run test
# run: cd test/build && ./bin/Debug/polyscope-test.exe --gtest_catch_exceptions=0 backend=openGL_mock