3535 strategy :
3636 fail-fast : false
3737 matrix :
38- os : [ ubuntu-22.04, macos-13, macos-14, macos-15 ]
38+ os : [ ubuntu-22.04, ubuntu-22.04-arm, macos-13, macos-14, macos-15 ]
3939 py_version : [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
4040
4141 exclude :
@@ -112,6 +112,8 @@ jobs:
112112
113113 if [ x"${{ matrix.OS }}" == x"ubuntu-22.04" ]; then
114114 CIBW_ARCHS=x86_64
115+ elif [ x"${{ matrix.OS }}" == x"ubuntu-22.04-arm" ]; then
116+ CIBW_ARCHS=aarch64
115117 elif [ x"${{ matrix.OS }}" == x"macos-13" ]; then
116118 CIBW_ARCHS=x86_64
117119 elif [ x"${{ matrix.OS }}" == x"macos-14" ]; then
@@ -127,78 +129,3 @@ jobs:
127129 cibuildwheel --output-dir wheelhouse
128130 pip install mmlir -f wheelhouse
129131 pushd test/python && python smoketest.py && popd
130-
131- test-aarch64 :
132-
133- runs-on : ubuntu-22.04
134-
135- strategy :
136- fail-fast : true
137- matrix :
138- py_version : [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
139-
140- steps :
141- - name : Checkout
142- uses : actions/checkout@v2
143-
144- - name : Test CMake
145- uses : uraimo/run-on-arch-action@v2
146- with :
147- arch : aarch64
148- distro : ubuntu22.04
149- dockerRunArgs : --volume "${{ github.workspace }}:/workspace"
150- install : |
151-
152- apt-get update -q -y
153- apt-get install -y wget build-essential python3 \
154- python-is-python3 python3-pip cmake ninja-build unzip
155-
156- run : |
157-
158- cd /workspace
159- pip install -r requirements.txt
160- pip download mlir -f https://makslevental.github.io/wheels
161- unzip mlir-*.whl
162- rm -rf mlir-*.whl
163-
164- cmake -G Ninja \
165- -DCMAKE_BUILD_TYPE=Release \
166- -DCMAKE_PREFIX_PATH=$PWD/mlir \
167- -DLLVM_EXTERNAL_LIT=$(which lit) \
168- -DPython3_EXECUTABLE=$(which python) \
169- -B build \
170- -S $PWD
171-
172- pushd build && ninja check-minimal && popd
173- rm -rf build
174-
175- - name : Test cibuildwheel
176- uses : uraimo/run-on-arch-action@v2
177- with :
178- arch : aarch64
179- distro : ubuntu22.04
180- dockerRunArgs : --volume "${{ github.workspace }}:/workspace"
181- install : |
182-
183- apt-get update -q -y
184- apt-get install -y wget build-essential cmake ninja-build
185-
186- mkdir -p ~/miniconda3
187- wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh -O miniconda.sh
188- bash miniconda.sh -b -u -p /root/miniconda3
189- eval "$(/root/miniconda3/bin/conda shell.bash hook)"
190- conda init
191-
192- run : |
193-
194- eval "$(/root/miniconda3/bin/conda shell.bash hook)"
195- conda create -n env -q -y -c conda-forge/label/python_rc python=${{ matrix.py_version }}
196- conda activate env
197-
198- cd /workspace
199-
200- export CIBW_ARCHS=aarch64
201- pip install -r requirements.txt
202- pip wheel . -v -w wheelhouse --no-build-isolation
203- pip install mmlir -f wheelhouse
204- pushd test/python && python smoketest.py && popd
0 commit comments