Skip to content

Commit c5eff81

Browse files
committed
Added actions workflow for osx
1 parent 89635a8 commit c5eff81

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/osx.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: OSX build
2+
on: [push, pull_request]
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
defaults:
7+
run:
8+
shell: bash -e -l {0}
9+
jobs:
10+
build:
11+
runs-on: macos-${{ matrix.os }}
12+
name: macos-${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os:
17+
- 13
18+
- 14
19+
- 15
20+
21+
steps:
22+
23+
- name: Checkout code
24+
uses: actions/checkout@v4
25+
26+
- name: Set conda environment
27+
uses: mamba-org/setup-micromamba@main
28+
with:
29+
environment-name: myenv
30+
environment-file: environment-dev.yml
31+
init-shell: bash
32+
cache-downloads: true
33+
34+
- name: Configure using CMake
35+
run: cmake -B build -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DBUILD_TESTS=ON
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_xsimd_algorithm --parallel 8
44+
45+
- name: Run tests
46+
working-directory: build
47+
run: ./test_xsimd_algorithm

0 commit comments

Comments
 (0)