Skip to content

Commit 53e8151

Browse files
committed
feat: support building universal2/arm64 from x64_86 Python 3.8
1 parent 2646901 commit 53e8151

File tree

1 file changed

+5
-71
lines changed

1 file changed

+5
-71
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -9,93 +9,27 @@ on:
99
- develop
1010

1111
jobs:
12-
pre-commit:
13-
name: Format
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v1
17-
with:
18-
submodules: true
19-
- uses: actions/setup-python@v2
20-
- uses: pre-commit/[email protected]
21-
with:
22-
extra_args: -a docker-clang-format --hook-stage manual
23-
24-
clang-tidy:
25-
name: Clang-Tidy
26-
runs-on: ubuntu-latest
27-
container: silkeh/clang:10
28-
29-
steps:
30-
- uses: actions/checkout@v1
31-
with:
32-
submodules: true
33-
34-
- name: Install requirements
35-
run: apt-get update && apt-get install -y python3-dev python3-pip
36-
37-
- name: Install extra requirements
38-
run: python3 -m pip install setuptools_scm toml
39-
40-
- name: Configure
41-
run: cmake -S . -B build -DCMAKE_CXX_CLANG_TIDY="$(which clang-tidy);--warnings-as-errors=*"
42-
43-
- name: Build
44-
run: cmake --build build -j 2
45-
46-
47-
cmake:
48-
runs-on: ubuntu-latest
49-
strategy:
50-
fail-fast: false
51-
matrix:
52-
python-version: ["3.6", "3.9", "pypy3"]
53-
include:
54-
- python-version: "3.8"
55-
cmake-extras: "-DCMAKE_CXX_STANDARD=17"
56-
57-
name: CMake Python ${{ matrix.python-version }}
58-
59-
steps:
60-
- uses: actions/checkout@v1
61-
with:
62-
submodules: true
63-
64-
- uses: actions/setup-python@v2
65-
with:
66-
python-version: ${{ matrix.python-version }}
67-
68-
- name: Install python tools
69-
run: python -m pip install -r dev-requirements.txt pytest-github-actions-annotate-failures
70-
71-
- name: Configure
72-
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DBOOST_HISTOGRAM_ERRORS=ON ${{ matrix.cmake-extras }}
73-
74-
- name: Build
75-
run: cmake --build build -j 2
76-
77-
- name: Test
78-
working-directory: ./build
79-
run: python -m pytest -ra
8012

8113
build_wheels:
8214
name: Wheels on ${{ matrix.os }}
8315
runs-on: ${{ matrix.os }}
8416
strategy:
8517
matrix:
86-
os: [ubuntu-latest, windows-latest, macos-latest]
18+
os: [macos-latest]
8719

8820
steps:
8921
- uses: actions/checkout@v1
9022
with:
9123
submodules: true
9224

93-
- uses: pypa/cibuildwheel@v1.11.0
25+
- uses: henryiii/cibuildwheel@henryiii/feat/py38u
9426
env:
95-
CIBW_BUILD: cp38-win_amd64 cp36-manylinux_i686 cp37-macosx_x86_64
27+
CIBW_BUILD: cp38-*
28+
CIBW_ARCHS: all
9629
CIBW_TEST_EXTRAS: test
9730
CIBW_TEST_COMMAND: pytest {project}/tests
9831
CIBW_BUILD_VERBOSITY: 1
32+
MACOSX_DEPLOYMENT_TARGET: 10.12
9933

10034
- uses: actions/upload-artifact@v2
10135
with:

0 commit comments

Comments
 (0)