Skip to content

Merge pull request #454 from JuliaInterop/ViralBShah-patch-1 #132

Merge pull request #454 from JuliaInterop/ViralBShah-patch-1

Merge pull request #454 from JuliaInterop/ViralBShah-patch-1 #132

Workflow file for this run

name: test-win
on:
push:
branches-ignore:
- prerelease
pull_request:
branches-ignore:
- prerelease
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.7"
- "1.10"
- "nightly"
os:
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- name: Clone libcxxwrap
continue-on-error: true
env:
body: ${{ github.event.pull_request.body }}
run: |
mkdir libcxxwrap && cd libcxxwrap
first_line=$(echo "$body" | sed -n '1p')
if [[ "$first_line" == *"#"* ]]; then
IFS='#' read -r left right <<< "$first_line"
repo_url=$(echo "$left" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
branch=$(echo "$right" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
else
repo_url="$first_line"
branch="main"
fi
echo "repo_url: '$repo_url'"
echo "branch: '$branch'"
git clone --branch "$branch" --single-branch "$repo_url" .
echo "done cloning"
- name: Config 32bit
continue-on-error: true
if: ${{ matrix.arch == 'x86'}}
run: |
cd libcxxwrap && mkdir build && cd build
cmake -G "Visual Studio 17 2022" -A Win32 -DOVERRIDES_PATH=$HOMEDRIVE/$HOMEPATH/.julia/artifacts/Overrides.toml -DOVERRIDE_ROOT=./ -DAPPEND_OVERRIDES_TOML=ON ..
- name: Config 64bit
continue-on-error: true
if: ${{ matrix.arch == 'x64'}}
run: |
cd libcxxwrap && 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 ..
- name: Build libcxxwrap
continue-on-error: true
run: |
cd libcxxwrap/build
cmake --build . --config Release
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest