2929
3030 strategy :
3131 matrix :
32- os : [ubuntu-latest, macos-latest, windows-latest]
32+ os : [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest]
3333
3434 steps :
3535 - name : Checkout
@@ -85,29 +85,35 @@ jobs:
8585 with :
8686 token : ${{ secrets.CODECOV_TOKEN }}
8787
88- - name : Set up QEMU
89- uses : docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
90- with :
91- platforms : all
92- if : runner.os == 'Linux' && runner.arch == 'X64'
93-
9488 - name : Free disk space
9589 run : |
9690 sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /usr/local/.ghcup /usr/share/swift
9791 df -h /
9892 shell : bash
99- if : matrix .os == 'ubuntu-latest '
93+ if : runner .os == 'Linux '
10094
101- - name : Build distributions (Linux)
95+ - name : Build distributions (Linux x86_64 )
10296 run : |
10397 rm -rf dist
10498 make dist-rs
10599 make dist-py-sdist
106100 make dist-py-wheel
107101 make dist-check
108102 shell : bash
103+ env :
104+ CIBW_ARCHS_LINUX : native
109105 if : matrix.os == 'ubuntu-latest'
110106
107+ - name : Build distributions (Linux ARM64)
108+ run : |
109+ rm -rf dist
110+ make dist-py-wheel
111+ make dist-check
112+ shell : bash
113+ env :
114+ CIBW_ARCHS_LINUX : native
115+ if : matrix.os == 'ubuntu-24.04-arm'
116+
111117 - name : Build distributions (macOS/Windows)
112118 run : |
113119 rm -rf dist
@@ -116,13 +122,13 @@ jobs:
116122 shell : bash
117123 env :
118124 CIBW_ENVIRONMENT_MACOS : MACOSX_DEPLOYMENT_TARGET=11.0
119- if : matrix .os != 'ubuntu-latest '
125+ if : runner .os != 'Linux '
120126
121127 - name : Test wheel
122128 uses : actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
123129 with :
124130 module : python_template_rust
125- if : matrix .os == 'ubuntu-latest '
131+ if : runner .os == 'Linux '
126132
127133 - name : Test source distribution
128134 uses : actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
0 commit comments