|
5 | 5 | - main
|
6 | 6 | paths-ignore:
|
7 | 7 | - '.github/workflows/docs.yaml'
|
8 |
| - - '.github/workflows/tests.yaml' |
| 8 | + - ".github/workflows/publish.yaml" |
9 | 9 | - '*.md'
|
10 | 10 | pull_request:
|
11 | 11 | branches:
|
12 | 12 | - main
|
13 | 13 |
|
14 | 14 | jobs:
|
15 |
| - bionic: |
| 15 | + cmake: |
16 | 16 | # Bionic default: gcc 7, python 3.6
|
17 |
| - name: Bionic |
18 |
| - runs-on: ubuntu-18.04 |
19 |
| - steps: |
20 |
| - - uses: actions/checkout@v2 |
21 |
| - |
22 |
| - - name: Build |
23 |
| - run: | |
24 |
| - mkdir -p build |
25 |
| - cd build |
26 |
| - cmake .. -DBUILD_PYTHON=ON |
27 |
| - make |
28 |
| -
|
29 |
| - focal: |
30 | 17 | # Focal default: gcc 9, python 3.8
|
31 |
| - name: Focal |
32 |
| - runs-on: ubuntu-20.04 |
33 |
| - steps: |
34 |
| - - uses: actions/checkout@v2 |
35 |
| - |
36 |
| - - name: Build |
37 |
| - run: | |
38 |
| - mkdir -p build |
39 |
| - cd build |
40 |
| - cmake .. -DBUILD_PYTHON=ON |
41 |
| - make |
42 |
| -
|
43 |
| - macos: |
44 | 18 | # Catalina default: clang 12, python 3.9
|
45 |
| - name: macOS |
46 |
| - runs-on: macos-latest |
| 19 | + name: CMake ${{ matrix.os }} |
| 20 | + runs-on: ${{ matrix.os }} |
| 21 | + strategy: |
| 22 | + matrix: |
| 23 | + os: |
| 24 | + - ubuntu-20.04 |
| 25 | + - macos-latest |
| 26 | + |
47 | 27 | steps:
|
48 | 28 | - uses: actions/checkout@v2
|
49 | 29 |
|
50 | 30 | - name: Build
|
| 31 | + env: |
| 32 | + CMAKE_OSX_ARCHITECTURES: "arm64;x86_64" |
51 | 33 | run: |
|
52 | 34 | mkdir -p build
|
53 | 35 | cd build
|
54 |
| - cmake .. -DBUILD_PYTHON=ON |
| 36 | + cmake .. -DBUILD_PYTHON=ON -DPYBIND11_PYTHON_VERSION=3 |
55 | 37 | make
|
56 | 38 |
|
57 |
| - ubuntu_pip: |
58 |
| - name: Ubuntu pip |
59 |
| - runs-on: ubuntu-latest |
60 |
| - steps: |
61 |
| - - uses: actions/checkout@v2 |
| 39 | + pip: |
| 40 | + name: Pip ${{ matrix.os }} |
| 41 | + runs-on: ${{ matrix.os }} |
| 42 | + strategy: |
| 43 | + matrix: |
| 44 | + os: |
| 45 | + - ubuntu-latest |
| 46 | + - macos-latest |
62 | 47 |
|
63 |
| - - name: Install |
64 |
| - run: | |
65 |
| - pip install . -vvv |
66 |
| -
|
67 |
| - ubuntu_pip_dev: |
68 |
| - name: Ubuntu pip dev |
69 |
| - runs-on: ubuntu-latest |
70 | 48 | steps:
|
71 | 49 | - uses: actions/checkout@v2
|
72 | 50 |
|
73 | 51 | - name: Install
|
| 52 | + env: |
| 53 | + CMAKE_OSX_ARCHITECTURES: "arm64;x86_64" |
74 | 54 | run: |
|
75 |
| - pip install -e . -vvv |
| 55 | + pip3 install . -vvv |
| 56 | +
|
| 57 | + pip_dev: |
| 58 | + name: Pip dev ${{ matrix.os }} |
| 59 | + runs-on: ${{ matrix.os }} |
| 60 | + strategy: |
| 61 | + matrix: |
| 62 | + os: |
| 63 | + - ubuntu-latest |
| 64 | + - macos-latest |
76 | 65 |
|
77 |
| - macos_pip: |
78 |
| - name: macOS pip |
79 |
| - runs-on: macos-latest |
80 | 66 | steps:
|
81 | 67 | - uses: actions/checkout@v2
|
82 | 68 |
|
83 | 69 | - name: Install
|
| 70 | + env: |
| 71 | + CMAKE_OSX_ARCHITECTURES: "arm64;x86_64" |
84 | 72 | run: |
|
85 |
| - pip3 install . -vvv |
| 73 | + pip3 install --no-use-pep517 -e . -vvv |
0 commit comments