-
Notifications
You must be signed in to change notification settings - Fork 136
56 lines (50 loc) · 1.35 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Windows build
on:
push:
branches:
- master
- develop
pull_request:
branches:
- '**'
jobs:
gnumake-build:
name: GNUMake test of demo on Windows MSVC
runs-on: windows-latest
strategy:
matrix:
float-precision: [2]
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
- name: get example code
shell: cmd
run: |
copy examples\makefile .
copy examples\tutorial_example.c .
- name: compile example
shell: cmd
run: make COMPILER=cl COMPILER_TYPE=MSVC WINDOWS_ARCH=64 EXE=demotest PRECISION=${{matrix.float-precision}}
- name: run example
shell: cmd
run: demotest.exe
cmake-nmake-build:
name: CMake with NMake test of demo on Windows MSVC
runs-on: windows-latest
strategy:
matrix:
float-precision: [2]
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
- name: make build directory
shell: cmd
run: mkdir build_dir
- name: cmake configure
shell: cmd
run: cmake .. -G "NMake Makefiles" -DOUTPUT_EXE="demotest.exe" -DPRECISION:STRING=${{matrix.float-precision}}
working-directory: build_dir
- name: nmake build
shell: cmd
run: nmake
working-directory: build_dir