Skip to content

Commit 26b6ad7

Browse files
committed
Added OSX workflow
1 parent 0ce7b93 commit 26b6ad7

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/osx.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: OSX
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: macos-${{ matrix.os }}
16+
name: macos-${{ matrix.os }} - mkl
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os:
21+
- 11
22+
- 12
23+
24+
steps:
25+
26+
- name: Checkout code
27+
uses: actions/checkout@v3
28+
29+
- name: Set conda environment
30+
uses: mamba-org/setup-micromamba@main
31+
with:
32+
environment-name: myenv
33+
environment-file: environment-dev.yml
34+
init-shell: bash
35+
cache-downloads: true
36+
37+
- name: Install mkl
38+
run: micromamba install mkl
39+
40+
- name: Configure using CMake
41+
run: cmake -Bbuild -DDOWNLOAD_GTEST=ON -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_SYSTEM_IGNORE_PATH=/usr/lib
42+
43+
- name: Build
44+
working-directory: build
45+
run: cmake --build . --target test_xtensor_blas --parallel 8
46+
47+
- name: Run tests
48+
working-directory: build/test
49+
run: ./test_xtensor_blas

0 commit comments

Comments
 (0)