Skip to content

Commit c7c007c

Browse files
Update Windows.yml
1 parent 9e3a489 commit c7c007c

File tree

1 file changed

+33
-32
lines changed

1 file changed

+33
-32
lines changed

.github/workflows/Windows.yml

+33-32
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,43 @@ on:
44
branches: [ master ]
55
pull_request:
66
branches: [ master ]
7-
jobs:
7+
8+
jobs:
89
build:
9-
runs-on: windows-latest
1010
strategy:
1111
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'
12+
arch : [x86,x64,amd64_arm64]
13+
include:
14+
- arch : x86
15+
bindings : -DZ3_BUILD_PYTHON_BINDINGS=True
16+
- arch : x64
17+
cmd1 : 'julia -e "using Pkg; Pkg.add(PackageSpec(name=\"libcxxwrap_julia_jll\", version=\"0.7.0\"))"'
18+
cmd2 : 'julia -e "using libcxxwrap_julia_jll; print(dirname(libcxxwrap_julia_jll.libcxxwrap_julia_path))" > tmp.env'
19+
cmd3 : 'set /P JlCxxDir=<tmp.env'
20+
bindings: '-DJlCxx_DIR=%JlCxxDir%\..\lib\cmake\JlCxx $(cmakeJava) $(cmakeNet) $(cmakePy) -DCMAKE_BUILD_TYPE=RelWithDebInfo'
21+
- arch : amd64_arm64
22+
bindings: -DZ3_BUILD_PYTHON_BINDINGS=True
23+
24+
runs-on: windows-latest
3325
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
3428
- name: Create build directory
3529
run: md build
3630
- 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 ..
31+
run: cd build
32+
- name: cmd1
33+
if: ${{ matrix.cmd1 }}
34+
run: cmd1
35+
- name: cmd2
36+
if: ${{ matrix.cmd2 }}
37+
run: cmd2
38+
- name: cmd3
39+
if: ${{ matrix.cmd3 }}
40+
run: cmd3
41+
- name: vscmd
42+
run: call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.arch }}
43+
- name: configure
44+
run: cmake ${{ matrix.bindings }} -G "NMake Makefiles" ../
45+
- name: make
46+
run: nmake

0 commit comments

Comments
 (0)