Features/python eol #1
This file contains 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
# Build envsub tarballs for supported python. | |
name: "Build artifact" | |
on: | |
workflow_call: | |
inputs: | |
release-version: | |
required: true | |
type: string | |
dry-run: | |
required: true | |
type: boolean | |
python-version: | |
required: true | |
type: string | |
pull_request: | |
paths: | |
# When we change pyproject.toml, we want to ensure that the maturin builds still work. | |
- pyproject.toml | |
# And when we change this workflow itself... | |
- .github/workflows/build-artifacts.yml | |
concurrency: | |
group: sdist-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
sdist: | |
name: Build artifact for ${{ inputs.release-version }} ${{ inputs.dry-run && '(dry-run)' || '' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ inputs.python-version }} | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
- name: Install the project | |
run: uv sync | |
- name: Build tarball | |
run: uv build | |
- name: "Upload sdist" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pypi_files | |
path: dist/* |