- Notifications
You must be signed in to change notification settings - Fork48
Fix test (#194)#668
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| name:test-win | |
| on: | |
| -push | |
| -pull_request | |
| defaults: | |
| run: | |
| shell:bash | |
| jobs: | |
| test: | |
| name:Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | |
| runs-on:${{ matrix.os }} | |
| strategy: | |
| fail-fast:false | |
| matrix: | |
| version: | |
| -"1.10" | |
| -"1" | |
| -"nightly" | |
| os: | |
| -windows-latest | |
| arch: | |
| -x64 | |
| steps: | |
| -uses:actions/checkout@v3 | |
| with: | |
| fetch-depth:0 | |
| -uses:julia-actions/setup-julia@latest | |
| with: | |
| version:${{ matrix.version }} | |
| arch:${{ matrix.arch }} | |
| -name:Config and Test | |
| env: | |
| body:${{ github.event.pull_request.body }} | |
| run:| | |
| mkdir build | |
| cd build | |
| cmake -G "Visual Studio 17 2022" -A x64 -DOVERRIDES_PATH=$HOMEDRIVE/$HOMEPATH/.julia/artifacts/Overrides.toml -DOVERRIDE_ROOT=./ -DAPPEND_OVERRIDES_TOML=ON .. | |
| package="$(echo "$body" | sed -n '1p')" | |
| if [[ ! "${package}" =~ ^https:// ]]; then | |
| package="https://github.com/JuliaInterop/CxxWrap.jl.git" | |
| fi | |
| cmake --build . --config Debug | |
| julia -e "using Pkg; Pkg.Registry.add(\"General\"); Pkg.Registry.add(RegistrySpec(url = \"https://github.com/barche/CxxWrapTestRegistry.git\"))" | |
| julia -e "using Pkg; pkg\"add ${package}\"; using CxxWrap" | |
| ctest -j 1 -C Debug -V |