CI for macos (#44)

* 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
This commit is contained in:
koide3 2024-05-08 17:08:21 +09:00 committed by GitHub
parent 6e7b77897b
commit 532a3abd38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 40 additions and 3 deletions

View File

@ -1,4 +1,4 @@
name: Build(Linux)
name: linux
on:
push:

37
.github/workflows/build-macos.yml vendored Normal file
View File

@ -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

View File

@ -1,4 +1,4 @@
name: Build(Windows)
name: windows
on:
push:

View File

@ -1,4 +1,4 @@
name: Test
name: test
on:
push: