3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 12:08:18 +00:00

Update Windows.yml

This commit is contained in:
Nikolaj Bjorner 2023-12-18 19:31:17 -08:00 committed by GitHub
parent 9e3a489a6c
commit c7c007c2c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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' bindings: '-DJlCxx_DIR=%JlCxxDir%\..\lib\cmake\JlCxx $(cmakeJava) $(cmakeNet) $(cmakePy) -DCMAKE_BUILD_TYPE=RelWithDebInfo'
setupCmd1: 'julia -e "using Pkg; Pkg.add(PackageSpec(name=\"libcxxwrap_julia_jll\", version=\"0.7.0\"))"' - arch : amd64_arm64
setupCmd2: 'julia -e "using libcxxwrap_julia_jll; print(dirname(libcxxwrap_julia_jll.libcxxwrap_julia_path))" > tmp.env' bindings: -DZ3_BUILD_PYTHON_BINDINGS=True
setupCmd3: 'set /P JlCxxDir=<tmp.env'
bindings: '-DJlCxx_DIR=%JlCxxDir%\..\lib\cmake\JlCxx $(cmakeJava) $(cmakeNet) $(cmakePy) -DCMAKE_BUILD_TYPE=RelWithDebInfo' runs-on: windows-latest
runTests: 'False'
arm64:
arch: 'amd64_arm64'
setupCmd1: ''
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