Skip to content

Commit

Permalink
Add free-threaded build in GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
jmao-denver committed Oct 21, 2024
1 parent e93774a commit c102e26
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build_ft_wheel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build JPY distributions

on:
pull_request:
branches: [ 'master', 'release/v*' ]
push:
branches: [ 'master', 'release/v*' ]

jobs:
bdist-wheels:
runs-on: ${{ matrix.info.machine }}
strategy:
fail-fast: false
matrix:
info:
- { machine: 'ubuntu-20.04', python: '3.13', arch: 'amd64', cmd: '.github/env/Linux/bdist-wheel.sh' }
# - { machine: 'ubuntu-20.04', python: '3.13', arch: 'arm64', cmd: '.github/env/Linux/bdist-wheel.sh' }
- { machine: 'windows-2022', python: '3.13', arch: 'amd64', cmd: '.\.github\env\Windows\bdist-wheel.ps1' }
- { machine: 'macos-13', python: '3.13', arch: 'amd64', cmd: '.github/env/macOS/bdist-wheel.sh' }
- { machine: 'macos-latest', python: '3.13', arch: 'arm64', cmd: '.github/env/macOS/bdist-wheel.sh' }


steps:
- uses: actions/checkout@v4

- uses: astral-sh/setup-uv@v3
- run: |
uv python install 3.13t
uv venv --python 3.13t
. .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
# - uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.info.python }}

- uses: actions/setup-java@v4
id: setup-java
with:
distribution: 'temurin'
java-version: '8'

- run: pip install setuptools
- run: ${{ matrix.info.cmd }}

- uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.info.python }}-${{ matrix.info.machine }}-${{ matrix.info.arch }}
path: dist/*.whl
retention-days: 1

0 comments on commit c102e26

Please sign in to comment.