Skip to content

Refactor build function #1728

Refactor build function

Refactor build function #1728

Workflow file for this run

name: "Package"
on:
workflow_dispatch:
pull_request:
paths-ignore:
- "docs/**"
- "examples/**"
- "*.md"
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
#############################################################################
# macOS
#############################################################################
macos:
name: "macOS"
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
free-threaded: [""]
include:
- python-version: "3.13"
free-threaded: "ft"
uses: ./.github/workflows/_build_macos.yml
with:
python-version: "${{ matrix.python-version }}"
free-threaded: "${{ matrix.free-threaded }}"
run-test: "false"
test-concurrency: 3
#############################################################################
# Windows
#############################################################################
windows:
name: "Windows"
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
free-threaded: [""]
include:
- python-version: "3.13"
free-threaded: "ft"
uses: ./.github/workflows/_build_windows.yml
with:
python-version: "${{ matrix.python-version }}"
free-threaded: "${{ matrix.free-threaded }}"
run-test: "${{ matrix.python-version == '3.11'}}"
# Note: CUDA version is hard-coded in installation script
test-concurrency: 3
#############################################################################
# Linux (CPU)
#############################################################################
linux-aarch64:
name: "Linux aarch64"
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
uses: ./.github/workflows/_build_linux.yml
with:
os: ubuntu-24.04-arm
arch: aarch64
python-version: "${{ matrix.python-version }}"
run-test: "${{ matrix.python-version == '3.10'}}"
test-concurrency: 3
#############################################################################
# Linux (CUDA)
#############################################################################
linux-x86-cuda:
name: "Linux x86_64 CUDA"
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
cuda-version: ["12.4"]
uses: ./.github/workflows/_build_linux_cuda.yml
with:
build_container: "pytorch/manylinux2_28-builder:cuda${{ matrix.cuda-version }}"
python-version: "${{ matrix.python-version }}"
cuda-version: "${{ matrix.cuda-version }}"
run-test: "${{ matrix.python-version == '3.11'}}"
test-concurrency: 3