Fix flexaid tmp name to avoid overwriting #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
build_wheels: | |
name: Build wheels for ${{ matrix.platform_id }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
include: | |
- os: ubuntu-latest | |
platform_id: manylinux_x86_64 | |
- os: macos-latest | |
platform_id: macosx | |
- os: windows-latest | |
platform_id: win_amd64 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up MSVC environment (Windows) | |
if: runner.os == 'Windows' | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: x64 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- name: Build wheels | |
uses: pypa/cibuildwheel@v2.23.3 | |
env: | |
CIBW_BUILD_VERBOSITY: 1 | |
CIBW_ARCHS: ${{ runner.os == 'macOS' && 'universal2' || 'auto64' }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: cibw-wheels-${{ matrix.platform_id }}-${{ strategy.job-index }} | |
path: ./wheelhouse/*.whl | |
build_sdist: | |
name: Build source distribution | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v5 | |
name: Install Python | |
with: | |
python-version: '3.13' | |
- run: python -m pip install build | |
- name: Build sdist | |
run: python -m build --sdist | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: cibw-sdist | |
path: dist/*.tar.gz | |
upload_pypi: | |
needs: [ build_wheels, build_sdist ] | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- name: Clean dist folder | |
run: rm -rf dist | |
- name: Download all distribution files | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: cibw-* | |
path: dist/ | |
merge-multiple: true | |
- name: Publish package to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |