Skip to content

Commit

Permalink
CI for macos (#44)
Browse files Browse the repository at this point in the history
* CI for macos

* no large

* remove C

* openmp root

* openmp root

* abspath

* remove ls

* test on 13

* fix

* fix ci

* specify openmp_root

* rename

* fix image name

* remove macos-13
  • Loading branch information
koide3 authored May 8, 2024
1 parent 6e7b778 commit 532a3ab
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build(Linux)
name: linux

on:
push:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: macos

on:
push:
branches: [ master ]
paths-ignore: '**.md'
pull_request:
branches: [ master ]
paths-ignore: '**.md'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
strategy:
matrix:
OS: [macos-14]

runs-on: ${{ matrix.OS }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'

- run: brew install eigen libomp

- run: pip install numpy scipy pytest

- run: pip install .
env:
OpenMP_ROOT: /opt/homebrew/opt/libomp

- run: python -m pytest src/test/python_test.py -v
2 changes: 1 addition & 1 deletion .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build(Windows)
name: windows

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: test

on:
push:
Expand Down

0 comments on commit 532a3ab

Please sign in to comment.