-
Notifications
You must be signed in to change notification settings - Fork 23
45 lines (38 loc) · 1.2 KB
/
test_macos.yml
File metadata and controls
45 lines (38 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Test macOS
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
# Skip running if the commit message contains '[ci skip]'
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
name: Build wheels - ${{ matrix.os }}-${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-15-intel
arch: x64
- os: macos-latest
arch: arm64
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.12'
- name: install python packages
run: python -m pip install numpy
- name: configure
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DPOLYSCOPE_BACKEND_OPENGL3_GLFW=ON -DPOLYSCOPE_BACKEND_OPENGL_MOCK=ON ..
- name: build
# explicitly limit to 4 parallel jobs here, otherwise the macOS intel
# runners seem to use too many and crash
run: cd build && cmake --build . --parallel 4
- name: run test
run: python test/polyscope_test.py -v --backend=openGL_mock