Skip to content

Commit 54138fb

Browse files
committed
test aarch64
1 parent 139e376 commit 54138fb

File tree

2 files changed

+48
-4
lines changed

2 files changed

+48
-4
lines changed

.github/workflows/test.yml

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515

16-
test-against-mlir-bindings:
16+
mlir-bindings:
1717

1818
runs-on: ${{ matrix.os }}
1919

@@ -57,7 +57,51 @@ jobs:
5757
run: |
5858
python examples/mwe.py
5959
60-
test-against-torch-mlir-bindings:
60+
mlir-bindings-aarch64:
61+
62+
runs-on: ${{ matrix.os }}
63+
64+
strategy:
65+
fail-fast: false
66+
matrix:
67+
os: [ ubuntu-22.04 ]
68+
py_version: [ "3.10", "3.11" ]
69+
70+
steps:
71+
- name: Checkout
72+
uses: actions/checkout@v2
73+
74+
- name: Install, configure, and test
75+
uses: uraimo/run-on-arch-action@v2
76+
with:
77+
arch: aarch64
78+
distro: ubuntu20.04
79+
dockerRunArgs: --volume "${{ github.workspace }}:/workspace"
80+
install: |
81+
82+
apt-get update -q -y
83+
apt-get install -y wget
84+
85+
mkdir -p ~/miniconda3
86+
wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh -O miniconda.sh
87+
bash miniconda.sh -b -u -p /root/miniconda3
88+
eval "$(/root/miniconda3/bin/conda shell.bash hook)"
89+
conda init
90+
conda install -q -y python=${{ matrix.py_version }}
91+
92+
run: |
93+
94+
eval "$(/root/miniconda3/bin/conda shell.bash hook)"
95+
96+
cd /workspace
97+
98+
pip install .[test,mlir] -f https://makslevental.github.io/wheels
99+
configure-mlir-python-utils -y mlir
100+
101+
pytest --capture=tee-sys --ignore-glob=*test_smoke* tests
102+
python examples/mwe.py
103+
104+
torch-mlir-bindings:
61105

62106
runs-on: ${{ matrix.os }}
63107

@@ -97,7 +141,7 @@ jobs:
97141
fi
98142
99143
100-
test-against-jax-bindings:
144+
jax-bindings:
101145

102146
runs-on: ${{ matrix.os }}
103147

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies = [
1717
test = ["pytest", "mlir-native-tools", "astpretty"]
1818
torch-mlir = ["torch-mlir-core"]
1919
jax = ["jax[cpu]", ]
20-
mlir = ["mlir-python-bindings"]
20+
mlir = ["mlir-python-bindings==18.0.0.2023090322+19d286bc"]
2121

2222
[project.scripts]
2323
configure-mlir-python-utils = "mlir_utils:_configuration.configuration.configure_host_bindings"

0 commit comments

Comments
 (0)