-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ce7b93
commit 26b6ad7
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: OSX | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
defaults: | ||
run: | ||
shell: bash -e -l {0} | ||
jobs: | ||
build: | ||
runs-on: macos-${{ matrix.os }} | ||
name: macos-${{ matrix.os }} - mkl | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- 11 | ||
- 12 | ||
|
||
steps: | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set conda environment | ||
uses: mamba-org/setup-micromamba@main | ||
with: | ||
environment-name: myenv | ||
environment-file: environment-dev.yml | ||
init-shell: bash | ||
cache-downloads: true | ||
|
||
- name: Install mkl | ||
run: micromamba install mkl | ||
|
||
- name: Configure using CMake | ||
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 | ||
|
||
- name: Build | ||
working-directory: build | ||
run: cmake --build . --target test_xtensor_blas --parallel 8 | ||
|
||
- name: Run tests | ||
working-directory: build/test | ||
run: ./test_xtensor_blas |