Skip to content

Commit 0dc8511

Browse files
Create Windows.yml
1 parent 13be3c3 commit 0dc8511

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/Windows.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Windows
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
jobs:
8+
build:
9+
runs-on: windows-latest
10+
strategy:
11+
matrix:
12+
x86:
13+
arch: 'x86'
14+
setupCmd1: ''
15+
setupCmd2: ''
16+
setupCmd3: ''
17+
bindings: '$(cmakePy)'
18+
runTests: 'False'
19+
x64:
20+
arch: 'x64'
21+
setupCmd1: 'julia -e "using Pkg; Pkg.add(PackageSpec(name=\"libcxxwrap_julia_jll\", version=\"0.7.0\"))"'
22+
setupCmd2: 'julia -e "using libcxxwrap_julia_jll; print(dirname(libcxxwrap_julia_jll.libcxxwrap_julia_path))" > tmp.env'
23+
setupCmd3: 'set /P JlCxxDir=<tmp.env'
24+
bindings: '-DJlCxx_DIR=%JlCxxDir%\..\lib\cmake\JlCxx $(cmakeJava) $(cmakeNet) $(cmakePy) -DCMAKE_BUILD_TYPE=RelWithDebInfo'
25+
runTests: 'False'
26+
arm64:
27+
arch: 'amd64_arm64'
28+
setupCmd1: ''
29+
setupCmd2: ''
30+
setupCmd3: ''
31+
bindings: ''
32+
runTests: 'False'
33+
steps:
34+
- name: Create build directory
35+
run: md build
36+
- name: Build
37+
run: |
38+
cd build
39+
$(setupCmd1)
40+
$(setupCmd2)
41+
$(setupCmd3)
42+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" $(arch)
43+
cmake $(bindings) -G "NMake Makefiles" ../
44+
nmake
45+
cd ..

0 commit comments

Comments
 (0)