-
Notifications
You must be signed in to change notification settings - Fork 2
76 lines (74 loc) · 2.25 KB
/
stable.yml
File metadata and controls
76 lines (74 loc) · 2.25 KB
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: Stable
on: [push, pull_request]
permissions:
contents: write
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
version: [9.15.0]
abi: [cp39, cp310, cp311, cp312, cp313]
steps:
- uses: actions/checkout@v4
- name: Build
run: |
docker build docker/manylinux -t medcoupling/manylinux
docker run --rm -e MAKEFLAGS='-j4' -v `pwd`:/io medcoupling/manylinux /io/build-wheels-linux.sh ${{ matrix.version }} ${{ matrix.abi }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
conda-remove-defaults: true
- name: Upload
if: startsWith(github.ref, 'refs/tags/')
shell: bash -l {0}
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
conda install -y twine
twine upload --non-interactive wheelhouse/*.whl
windows:
runs-on: windows-latest
permissions:
contents: write
strategy:
matrix:
include:
- abi: cp39
python-version: '3.9'
version: 9.15.0
- abi: cp310
python-version: '3.10'
version: 9.15.0
- abi: cp311
python-version: '3.11'
version: 9.15.0
- abi: cp312
python-version: '3.12'
version: 9.15.0
- abi: cp313
python-version: '3.13'
version: 9.15.0
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
update-environment: true
- name: Build
shell: cmd
run: call .\build-wheels-windows.bat ${{ matrix.version }} ${{ matrix.abi }}
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
conda-remove-defaults: true
- name: Upload
if: startsWith(github.ref, 'refs/tags/')
shell: bash -l {0}
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
conda install -y twine
twine upload --non-interactive wheelhouse/*.whl