Skip to content

Windows

Windows #4

Workflow file for this run

name: Windows
on:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
arch : [x86,x64,amd64_arm64]
include:
- arch : x86
bindings : '-DZ3_BUILD_PYTHON_BINDINGS=True'
- arch : x64
cmd1 : 'julia -e "using Pkg; Pkg.add(PackageSpec(name=\"libcxxwrap_julia_jll\"))"'
cmd2 : 'julia -e "using libcxxwrap_julia_jll; print(dirname(libcxxwrap_julia_jll.libcxxwrap_julia_path))" > tmp.env'
cmd3 : 'set /P JlCxxDir=<tmp.env'
bindings: '-DJlCxx_DIR=%JlCxxDir%\..\lib\cmake\JlCxx $(cmakeJava) $(cmakeNet) $(cmakePy) -DCMAKE_BUILD_TYPE=RelWithDebInfo'
- arch : amd64_arm64
bindings: '-DZ3_BUILD_PYTHON_BINDINGS=True'
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.3
- name: Setup VS Dev Environment
uses: seanmiddleditch/gha-setup-vsdevenv@v4
with:
host_arch: ${{ matrix.arch }}
- run: |
md build
cd build
cmake -DCMAKE_CXX_COMPILER=cl.exe ..
- run: cmake --build build