Skip to content

Commit 0dc18ae

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

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/osx.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
- 14
18+
- 15
19+
20+
steps:
21+
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
25+
- name: Set conda environment
26+
uses: mamba-org/setup-micromamba@main
27+
with:
28+
environment-name: myenv
29+
environment-file: environment-dev.yml
30+
init-shell: bash
31+
cache-downloads: true
32+
33+
- name: Configure using CMake
34+
run: cmake -B build -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DBUILD_TESTS=ON
35+
36+
- name: Install
37+
working-directory: build
38+
run: cmake --install .
39+
40+
- name: Build
41+
working-directory: build
42+
run: cmake --build . --target test_xsimd_algorithm --parallel 8
43+
44+
- name: Run tests
45+
working-directory: build/test
46+
run: ./test_xsimd_algorithm

0 commit comments

Comments
 (0)