Skip to content

Commit fc61e00

Browse files
authored
Merge pull request #142 from JohanMabille/gha_windows
Added Windows workflow
2 parents 1d24666 + ee793a2 commit fc61e00

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/windows.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Windows
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches: [master]
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
defaults:
11+
run:
12+
shell: msys2 {0}
13+
jobs:
14+
build:
15+
runs-on: [windows-latest]
16+
name: Windows
17+
18+
steps:
19+
- name: Use MinGW from MSYS2
20+
uses: msys2/setup-msys2@v2
21+
with:
22+
msystem: MINGW64
23+
update: true
24+
25+
- name: Checkout code
26+
uses: actions/checkout@v3
27+
28+
- name: Set conda environment
29+
uses: mamba-org/setup-micromamba@v1
30+
with:
31+
environment-file: environment-dev.yml
32+
cache-environment: true
33+
34+
- name: Configure using CMake
35+
run: cmake -Bbuild -DXTENSOR_INSTALL_R_PACKAGES=OFF -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DDOWNLOAD_GTEST=ON $(Build.SourcesDirectory)
36+
37+
- name: Install
38+
working-directory: build
39+
run: cmake --install .
40+
41+
- name: Build
42+
working-directory: build
43+
run: cmake --build . --target test_xtensor_r --parallel 8
44+
45+
- name: Run tests (C++)
46+
working-directory: build/test
47+
run: ./test_xtensor_r
48+

0 commit comments

Comments
 (0)