File tree 2 files changed +63
-1
lines changed
2 files changed +63
-1
lines changed Original file line number Diff line number Diff line change
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 : bash -e -l {0}
13
+ jobs :
14
+ build :
15
+ runs-on : ${{ matrix.runs-on }}
16
+ name : ${{ matrix.sys.compiler }}
17
+ strategy :
18
+ fail-fast : false
19
+ matrix :
20
+ runs-on : [windows-latest]
21
+ sys :
22
+ - {compiler: default}
23
+ # - {compiler: clang}
24
+
25
+ steps :
26
+
27
+ - name : Setup MSVC
28
+ if : matrix.sys.compiler == 'default'
29
+ uses : ilammy/msvc-dev-cmd@v1
30
+
31
+ - name : Setup clang
32
+ if : matrix.sys.compiler == 'clang'
33
+ run : |
34
+ echo "CC=clang" >> $GITHUB_ENV
35
+ echo "CXX=clang++" >> $GITHUB_ENV
36
+
37
+ - name : Checkout code
38
+ uses : actions/checkout@v3
39
+
40
+ - name : Set conda environment
41
+ uses : mamba-org/setup-micromamba@main
42
+ with :
43
+ environment-name : myenv
44
+ environment-file : environment-dev.yml
45
+ init-shell : bash
46
+ cache-downloads : true
47
+ create-args : |
48
+ ninja
49
+
50
+ - name : Install mkl
51
+ run : micromamba install mkl-devel
52
+
53
+ - name : Configure using CMake
54
+ run : cmake -Bbuild -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DDOWNLOAD_GTEST=ON -G Ninja
55
+
56
+ - name : Build
57
+ working-directory : build
58
+ run : cmake --build . --target test_xtensor_blas --parallel 8
59
+
60
+ - name : Run tests
61
+ working-directory : build/test
62
+ run : ./test_xtensor_blas
Original file line number Diff line number Diff line change 7
7
# The full license is in the file LICENSE, distributed with this software. #
8
8
############################################################################
9
9
10
- cmake_minimum_required (VERSION 3.1 )
10
+ cmake_minimum_required (VERSION 3.8 )
11
11
12
12
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR )
13
13
project (xtensor-blas-test )
You can’t perform that action at this time.
0 commit comments