From d627cc21c51879d5c974c19ff119c49bcca5da35 Mon Sep 17 00:00:00 2001 From: Johan Mabille Date: Mon, 12 Feb 2024 19:29:25 +0100 Subject: [PATCH] Added OSX workflow --- .github/workflows/osx.yml | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/osx.yml diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml new file mode 100644 index 0000000..7d99475 --- /dev/null +++ b/.github/workflows/osx.yml @@ -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_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