This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
75 lines (72 loc) · 2.32 KB
/
wheels.yml
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
75
name: Build and upload wheels
on:
schedule:
- cron: '0 0 * * 3'
push:
pull_request:
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }} for Python ${{ matrix.python }}
runs-on: ${{ matrix.os }}
env:
BUILD_COMMIT: main
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python: [cp36, cp37, cp38, cp39, pp37]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update repo
run: |
git submodule update --init
cd kiwi
git checkout ${{ env.BUILD_COMMIT }}
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install cibuildwheel
run: |
python -m pip install --upgrade pip
python -m pip install wheel cibuildwheel
- name: Build wheels
env:
CIBW_BUILD: ${{ matrix.python }}-*
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: python -m pytest {package}/py/tests -v
# Move to 2010 or 2014 for the next release (or when matplotlib does)
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
CIBW_MANYLINUX_I686_IMAGE: manylinux1
# Do not link against VC2014_1 on Windows
KIWI_DISABLE_FH4: 1
run: |
python -m cibuildwheel kiwi --output-dir dist
- name: Store artifacts
uses: actions/upload-artifact@v2
with:
name: artifact
path: dist/*.whl
upload_anaconda:
needs: [build_wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Anaconda upload
if: "contains( github.ref, 'master')"
env:
ANACONDA_ORG: multibuild-wheels-staging
run: |
python -m pip install pip --upgrade
python -m pip install wheel
pip install git+https://github.com/Anaconda-Platform/anaconda-project
pip install git+https://github.com/Anaconda-Server/anaconda-client
anaconda --token ${{ secrets.KIWI_STAGING_UPLOAD_TOKEN }} upload --force -u ${ANACONDA_ORG} dist/*.whl