mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
Update Windows.yml
This commit is contained in:
parent
9e3a489a6c
commit
c7c007c2c6
61
.github/workflows/Windows.yml
vendored
61
.github/workflows/Windows.yml
vendored
|
@ -4,42 +4,43 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
x86:
|
arch : [x86,x64,amd64_arm64]
|
||||||
arch: 'x86'
|
include:
|
||||||
setupCmd1: ''
|
- arch : x86
|
||||||
setupCmd2: ''
|
bindings : -DZ3_BUILD_PYTHON_BINDINGS=True
|
||||||
setupCmd3: ''
|
- arch : x64
|
||||||
bindings: '$(cmakePy)'
|
cmd1 : 'julia -e "using Pkg; Pkg.add(PackageSpec(name=\"libcxxwrap_julia_jll\", version=\"0.7.0\"))"'
|
||||||
runTests: 'False'
|
cmd2 : 'julia -e "using libcxxwrap_julia_jll; print(dirname(libcxxwrap_julia_jll.libcxxwrap_julia_path))" > tmp.env'
|
||||||
x64:
|
cmd3 : 'set /P JlCxxDir=<tmp.env'
|
||||||
arch: 'x64'
|
|
||||||
setupCmd1: 'julia -e "using Pkg; Pkg.add(PackageSpec(name=\"libcxxwrap_julia_jll\", version=\"0.7.0\"))"'
|
|
||||||
setupCmd2: 'julia -e "using libcxxwrap_julia_jll; print(dirname(libcxxwrap_julia_jll.libcxxwrap_julia_path))" > tmp.env'
|
|
||||||
setupCmd3: 'set /P JlCxxDir=<tmp.env'
|
|
||||||
bindings: '-DJlCxx_DIR=%JlCxxDir%\..\lib\cmake\JlCxx $(cmakeJava) $(cmakeNet) $(cmakePy) -DCMAKE_BUILD_TYPE=RelWithDebInfo'
|
bindings: '-DJlCxx_DIR=%JlCxxDir%\..\lib\cmake\JlCxx $(cmakeJava) $(cmakeNet) $(cmakePy) -DCMAKE_BUILD_TYPE=RelWithDebInfo'
|
||||||
runTests: 'False'
|
- arch : amd64_arm64
|
||||||
arm64:
|
bindings: -DZ3_BUILD_PYTHON_BINDINGS=True
|
||||||
arch: 'amd64_arm64'
|
|
||||||
setupCmd1: ''
|
runs-on: windows-latest
|
||||||
setupCmd2: ''
|
|
||||||
setupCmd3: ''
|
|
||||||
bindings: ''
|
|
||||||
runTests: 'False'
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
- name: Create build directory
|
- name: Create build directory
|
||||||
run: md build
|
run: md build
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: cd build
|
||||||
cd build
|
- name: cmd1
|
||||||
$(setupCmd1)
|
if: ${{ matrix.cmd1 }}
|
||||||
$(setupCmd2)
|
run: cmd1
|
||||||
$(setupCmd3)
|
- name: cmd2
|
||||||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" $(arch)
|
if: ${{ matrix.cmd2 }}
|
||||||
cmake $(bindings) -G "NMake Makefiles" ../
|
run: cmd2
|
||||||
nmake
|
- name: cmd3
|
||||||
cd ..
|
if: ${{ matrix.cmd3 }}
|
||||||
|
run: cmd3
|
||||||
|
- name: vscmd
|
||||||
|
run: call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.arch }}
|
||||||
|
- name: configure
|
||||||
|
run: cmake ${{ matrix.bindings }} -G "NMake Makefiles" ../
|
||||||
|
- name: make
|
||||||
|
run: nmake
|
||||||
|
|
Loading…
Reference in a new issue