-
Notifications
You must be signed in to change notification settings - Fork 5
74 lines (65 loc) · 1.47 KB
/
builds.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Builds
on:
push:
branches:
- main
paths-ignore:
- '.github/workflows/docs.yaml'
- ".github/workflows/publish.yaml"
- '*.md'
pull_request:
branches:
- main
jobs:
cmake:
# Bionic default: gcc 7, python 3.6
# Focal default: gcc 9, python 3.8
# Catalina default: clang 12, python 3.9
name: CMake ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-20.04
- macos-latest
steps:
- uses: actions/checkout@v2
- name: Build
env:
CMAKE_OSX_ARCHITECTURES: "arm64;x86_64"
run: |
mkdir -p build
cd build
cmake .. -DBUILD_PYTHON=ON -DPYBIND11_PYTHON_VERSION=3
make
pip:
name: Pip ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- uses: actions/checkout@v2
- name: Install
env:
CMAKE_OSX_ARCHITECTURES: "arm64;x86_64"
run: |
pip3 install . -vvv
pip_dev:
name: Pip dev ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- uses: actions/checkout@v2
- name: Install
env:
CMAKE_OSX_ARCHITECTURES: "arm64;x86_64"
run: |
pip3 install --upgrade pip setuptools wheel
pip3 install -e . -vvv