Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions python/cpp/.github/workflows/build.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest]
python:
{% if python_version_primary == "3.10" -%}
- version: "3.10"
Expand Down Expand Up @@ -104,17 +104,29 @@ jobs:
- name: Install build dependencies
run: pip install cibuildwheel

- name: Build distributions (Linux)
- name: Build distributions (Linux x86_64)
run: |
rm -rf dist
make dist-py-sdist
make dist-py-wheel
make dist-check
env:
CIBW_BUILD: {% raw %}"${{ matrix.python.cibuildwheel }}-manylinux*"{% endraw %}
CIBW_ARCHS_LINUX: native
CIBW_BUILD_VERBOSITY: 3
if: matrix.os == 'ubuntu-latest'

- name: Build distributions (Linux ARM64)
run: |
rm -rf dist
make dist-py-wheel
make dist-check
env:
CIBW_BUILD: {% raw %}"${{ matrix.python.cibuildwheel }}-manylinux*"{% endraw %}
CIBW_ARCHS_LINUX: native
CIBW_BUILD_VERBOSITY: 3
if: matrix.os == 'ubuntu-24.04-arm'

- name: Build distributions (macOS)
run: |
rm -rf dist
Expand All @@ -136,7 +148,7 @@ jobs:
uses: actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
with:
module: {{module}}
if: matrix.os == 'ubuntu-latest'
if: runner.os == 'Linux'

- name: Test source distribution
uses: actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
Expand Down
5 changes: 3 additions & 2 deletions python/cpp/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,13 @@ replace = 'version = "{new_version}"'

[tool.cibuildwheel]
build = "{% if python_version_primary == '3.10' %}cp310-* {% endif %}{% if python_version_primary in ['3.10', '3.11'] %}cp311-* {% endif %}{% if python_version_primary in ['3.10', '3.11', '3.12'] %}cp312-* {% endif %}cp313-*"
test-command = "echo 'TODO'"
test-command = "pytest -vvv {project}/{{ module }}/tests"
test-extras = "develop"

[tool.cibuildwheel.linux]
manylinux-aarch64-image = "manylinux_2_28"
manylinux-x86_64-image = "manylinux_2_28"
skip = "*i686 musllinux*"
skip = "*i686* *musllinux*"

[tool.cibuildwheel.macos]
environment = {MACOSX_DEPLOYMENT_TARGET="11.0"}
Expand Down
18 changes: 15 additions & 3 deletions python/cppjswasm/.github/workflows/build.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest]

steps:
- name: Checkout
Expand Down Expand Up @@ -93,17 +93,29 @@ jobs:
- name: Install build dependencies
run: pip install cibuildwheel

- name: Build distributions (Linux)
- name: Build distributions (Linux x86_64)
run: |
rm -rf dist
make dist-py-sdist
make dist-py-wheel
make dist-check
env:
CIBW_BUILD: "cp{{ python_version_primary.replace('.', '') }}-manylinux*"
CIBW_ARCHS_LINUX: native
CIBW_BUILD_VERBOSITY: 3
if: matrix.os == 'ubuntu-latest'

- name: Build distributions (Linux ARM64)
run: |
rm -rf dist
make dist-py-wheel
make dist-check
env:
CIBW_BUILD: "cp{{ python_version_primary.replace('.', '') }}-manylinux*"
CIBW_ARCHS_LINUX: native
CIBW_BUILD_VERBOSITY: 3
if: matrix.os == 'ubuntu-24.04-arm'

- name: Build distributions (macOS)
run: |
rm -rf dist
Expand All @@ -125,7 +137,7 @@ jobs:
uses: actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
with:
module: {{module}}
if: matrix.os == 'ubuntu-latest'
if: runner.os == 'Linux'

- name: Test source distribution
uses: actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
Expand Down
28 changes: 17 additions & 11 deletions python/rust/.github/workflows/build.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest]

steps:
- name: Checkout
Expand Down Expand Up @@ -79,29 +79,35 @@ jobs:
with:
token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %}

- name: Set up QEMU
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
with:
platforms: all
if: runner.os == 'Linux' && runner.arch == 'X64'

- name: Free disk space
run: |
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /usr/local/.ghcup /usr/share/swift
df -h /
shell: bash
if: matrix.os == 'ubuntu-latest'
if: runner.os == 'Linux'

- name: Build distributions (Linux)
- name: Build distributions (Linux x86_64)
run: |
rm -rf dist
make dist-rs
make dist-py-sdist
make dist-py-wheel
make dist-check
shell: bash
env:
CIBW_ARCHS_LINUX: native
if: matrix.os == 'ubuntu-latest'

- name: Build distributions (Linux ARM64)
run: |
rm -rf dist
make dist-py-wheel
make dist-check
shell: bash
env:
CIBW_ARCHS_LINUX: native
if: matrix.os == 'ubuntu-24.04-arm'

- name: Build distributions (macOS/Windows)
run: |
rm -rf dist
Expand All @@ -110,13 +116,13 @@ jobs:
shell: bash
env:
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0
if: matrix.os != 'ubuntu-latest'
if: runner.os != 'Linux'

- name: Test wheel
uses: actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
with:
module: {{module}}
if: matrix.os == 'ubuntu-latest'
if: runner.os == 'Linux'

- name: Test source distribution
uses: actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
Expand Down
28 changes: 17 additions & 11 deletions python/rustjswasm/.github/workflows/build.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest]

steps:
- name: Checkout
Expand Down Expand Up @@ -85,29 +85,35 @@ jobs:
with:
token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %}

- name: Set up QEMU
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
with:
platforms: all
if: runner.os == 'Linux' && runner.arch == 'X64'

- name: Free disk space
run: |
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /usr/local/.ghcup /usr/share/swift
df -h /
shell: bash
if: matrix.os == 'ubuntu-latest'
if: runner.os == 'Linux'

- name: Build distributions (Linux)
- name: Build distributions (Linux x86_64)
run: |
rm -rf dist
make dist-rs
make dist-py-sdist
make dist-py-wheel
make dist-check
shell: bash
env:
CIBW_ARCHS_LINUX: native
if: matrix.os == 'ubuntu-latest'

- name: Build distributions (Linux ARM64)
run: |
rm -rf dist
make dist-py-wheel
make dist-check
shell: bash
env:
CIBW_ARCHS_LINUX: native
if: matrix.os == 'ubuntu-24.04-arm'

- name: Build distributions (macOS/Windows)
run: |
rm -rf dist
Expand All @@ -116,13 +122,13 @@ jobs:
shell: bash
env:
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0
if: matrix.os != 'ubuntu-latest'
if: runner.os != 'Linux'

- name: Test wheel
uses: actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
with:
module: {{module}}
if: matrix.os == 'ubuntu-latest'
if: runner.os == 'Linux'

- name: Test source distribution
uses: actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
Expand Down
Loading