Skip to content

CI: Update script

CI: Update script #101

Workflow file for this run

name: Stable
on: [push, pull_request]
permissions:
contents: write
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
version: [9.14.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='-j2' -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: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: wheelhouse/medcoupling-${{ matrix.version }}-${{ matrix.abi }}-${{ matrix.abi }}-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- 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.14.0
- abi: cp310
python-version: '3.10'
version: 9.14.0
- abi: cp311
python-version: '3.11'
version: 9.14.0
- abi: cp312
python-version: '3.12'
version: 9.14.0
- abi: cp313
python-version: '3.13'
version: 9.14.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: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: wheelhouse/medcoupling-${{ matrix.version }}-${{ matrix.abi }}-${{ matrix.abi }}-win_amd64.whl
- 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