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
2 changes: 1 addition & 1 deletion .copier-answers.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: ebda788
_commit: d814faa
_src_path: https://github.com/python-project-templates/base.git
add_docs: true
add_extension: rust
Expand Down
28 changes: 17 additions & 11 deletions .github/workflows/build.yaml
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: ${{ secrets.CODECOV_TOKEN }}

- 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: python_template_rust
if: matrix.os == 'ubuntu-latest'
if: runner.os == 'Linux'

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