Debian Codegraph @

.github/workflows/build_wheels_weekly.yml

raw symbols SCIP
1 name: Build all wheels
2
3 on:
4 workflow_dispatch:
5 schedule:
6 - cron: '30 0 * * 1'
7 push:
8 branches:
9 - "master"
10
11 jobs:
12 build_wheels:
13 name: ${{ matrix.os }}
14 runs-on: ${{ matrix.os }}
15 strategy:
16 matrix:
17 os: [ubuntu-latest, macos-latest, windows-latest]
18
19 steps:
20 - uses: actions/checkout@v4
21 - name: Set up Python 3.10
22 uses: actions/setup-python@v5
23 with:
24 python-version: "3.10"
25
26 - name: Install dependencies
27 run: |
28 python -m pip install --upgrade pip setuptools
29
30 - name: Install cibuildwheel
31 run: |
32 python -m pip install cibuildwheel==2.16.2
33
34 - name: Set up QEMU
35 if: runner.os == 'Linux'
36 uses: docker/setup-qemu-action@v1
37 with:
38 platforms: all
39
40 - name: Build wheels
41 env:
42 CIBW_SKIP: "pp*-win* pp*-macosx* cp2* pp* cp*musl* cp36* *i686" # remove pypy on mac and win (wrong version)
43 CIBW_ARCHS_LINUX: auto aarch64 # force aarch64 with QEMU
44 CIBW_ARCHS_MACOS: x86_64 universal2 arm64
45 run: |
46 python -m cibuildwheel --output-dir wheelhouse
47
48 - uses: actions/upload-artifact@v4
49 with:
50 name: wheels-${{ strategy.job-index }}
51 path: ./wheelhouse