Skip to content

Commit 4de97ee

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

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/osx.yml

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

0 commit comments

Comments
 (0)