-
Notifications
You must be signed in to change notification settings - Fork 45
63 lines (50 loc) · 1.91 KB
/
release_climt.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
name: Publish in GitHub Package Registry
on:
release:
types: [published]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04,macOS-11]
#, windows-2019, macOS-10.15]
steps:
- uses: actions/checkout@v2
# Used to host cibuildwheel
- uses: actions/setup-python@v2
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.12.0
# - name: Build wheels
# run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
# env:
# CIBW_BUILD: cp36-manylinux_x86_64 cp37-manylinux_x86_64 cp38-manylinux_x86_64
- name: Build on Linux
env:
CIBW_BUILD: cp310-manylinux_x86_64 cp38-manylinux_x86_64 cp39-manylinux_x86_64
CIBW_ENVIRONMENT: "CC=gcc FC=gfortran CLIMT_ARCH=Linux"
if: ${{ runner.os == 'Linux' }}
run: python -m cibuildwheel --output-dir wheelhouse
- name: Build on macOS
env:
CIBW_BUILD: cp310-macosx_x86_64 cp38-macosx_x86_64 cp39-macosx_x86_64
CIBW_ARCHS_MACOS: "x86_64"
CIBW_ENVIRONMENT: "CLIMT_ARCH=Darwin"
# CIBW_ENVIRONMENT: "CC=gcc-8 FC=gfortran-8 CLIMT_ARCH=Darwin"
# CIBW_BEFORE_ALL_MACOS: brew remove gcc; brew install gcc@8
if: ${{ runner.os == 'macOS' }}
run: python -m cibuildwheel --output-dir wheelhouse
#- uses: actions/upload-artifact@v3
#with:
# name: my-artifact
# path: dist/
# if-no-files-found: error
- name: Install twine
run: python -m pip install twine
- name: upload wheels
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: twine upload wheelhouse/* --verbose