Skip to content

Enables C++ tests on Windows #58

Enables C++ tests on Windows

Enables C++ tests on Windows #58

Workflow file for this run

name: Windows
on:
workflow_dispatch:
pull_request:
push:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
#shell: msys2 {0}
shell: bash -e -l {0}
jobs:
build:
runs-on: [windows-latest]
name: MINGW64
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set conda environment
uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment-dev.yml
cache-environment: false
- name: Install gcc_win-64
run: micromamba install gxx_win-64 -c conda-forge
- name: Configure using CMake
run: |
cmake -Bbuild \
-DXTENSOR_INSTALL_R_PACKAGES=OFF \
-G "MinGW Makefiles" \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
-DDOWNLOAD_GTEST=ON \
$(Build.SourcesDirectory)
- name: Install
working-directory: build
run: cmake --install .
- name: Build
working-directory: build
run: cmake --build . --target test_xtensor_r --parallel 8
# TODO: fix the test on Windows
- name: Run tests (C++)
working-directory: build/test
run: ./test_xtensor_r