File tree 1 file changed +33
-32
lines changed
1 file changed +33
-32
lines changed Original file line number Diff line number Diff line change 4
4
branches : [ master ]
5
5
pull_request :
6
6
branches : [ master ]
7
- jobs :
7
+
8
+ jobs :
8
9
build :
9
- runs-on : windows-latest
10
10
strategy :
11
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'
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
33
25
steps :
26
+ - name : Checkout code
27
+ uses : actions/checkout@v2
34
28
- name : Create build directory
35
29
run : md build
36
30
- 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
You can’t perform that action at this time.
0 commit comments