Skip to content

Commit c185778

Browse files
committed
[llvm] use arm runners for aarch64 build
1 parent d80c9a7 commit c185778

File tree

7 files changed

+44
-10
lines changed

7 files changed

+44
-10
lines changed

.github/actions/setup_base/action.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,28 @@ runs:
7272
- name: "Install OS deps"
7373
shell: bash
7474
run: |
75+
7576
if [[ "${{ inputs.os }}" == "almalinux" ]]; then
7677
dnf install -y epel-release
7778
dnf install -y sudo ncurses-compat-libs tmate python3-pip git
79+
7880
# install ccache
79-
curl -sLO https://github.com/ccache/ccache/releases/download/v4.10.2/ccache-4.10.2-linux-x86_64.tar.xz
80-
tar -xf ccache-4.10.2-linux-x86_64.tar.xz
81-
pushd ccache-4.10.2-linux-x86_64 && make install && popd
81+
curl -sLO https://github.com/ccache/ccache/releases/download/v4.10.2/ccache-4.10.2.tar.xz
82+
tar -xf ccache-4.10.2.tar.xz
83+
pushd ccache-4.10.2
84+
mkdir build && pushd build
85+
cmake -D CMAKE_BUILD_TYPE=Release .. && make && make install
86+
popd -n 2
87+
8288
# install gh-cli
83-
curl -sLO https://github.com/cli/cli/releases/download/v2.61.0/gh_2.61.0_linux_amd64.rpm
84-
rpm -i gh_2.61.0_linux_amd64.rpm
89+
if [[ "${{ inputs.arch }}" == "x86_64" ]]; then
90+
rpm_arch=amd64
91+
elif [[ "${{ inputs.arch }}" == "aarch64" ]]; then
92+
rpm_arch=arm64
93+
fi
94+
curl -sLO https://github.com/cli/cli/releases/download/v2.61.0/gh_2.61.0_linux_${rpm_arch}.rpm
95+
rpm -i gh_2.61.0_linux_${rpm_arch}.rpm
96+
8597
# lol: failed to run git: fatal: detected dubious ownership in repository at '/__w/eudsl/eudsl'
8698
git config --global --add safe.directory /__w/eudsl/eudsl
8799
elif [[ "${{ inputs.os }}" == macos* ]]; then

.github/workflows/build_llvm.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,20 @@ jobs:
5757
container: "quay.io/pypa/manylinux_2_28_x86_64"
5858
os: "almalinux"
5959
arch: x86_64
60-
- name: "wasm_wasi"
61-
runs-on: "ubuntu-22.04"
62-
container: "quay.io/pypa/manylinux_2_28_x86_64"
60+
- name: "manylinux_aarch64"
61+
runs-on: "ubuntu-22.04-arm"
62+
container: "quay.io/pypa/manylinux_2_28_aarch64"
6363
os: "almalinux"
64-
arch: "wasm32-wasi"
64+
arch: aarch64
65+
# - name: "ubuntu_aarch64"
66+
# runs-on: "ubuntu-22.04-arm"
67+
# os: "ubuntu"
68+
# arch: aarch64
69+
# - name: "wasm_wasi"
70+
# runs-on: "ubuntu-22.04"
71+
# container: "quay.io/pypa/manylinux_2_28_x86_64"
72+
# os: "almalinux"
73+
# arch: "wasm32-wasi"
6574
- name: "windows_x86_64"
6675
runs-on: "windows-2019"
6776
os: "windows"

.github/workflows/build_test_release_eudsl.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ jobs:
4848
- name: "ubuntu_x86_64"
4949
runs-on: "ubuntu-22.04"
5050
os: "ubuntu"
51+
arch: "x86_64"
52+
- name: "ubuntu_aarch64"
53+
runs-on: "ubuntu-22.04-arm"
54+
os: "ubuntu"
55+
arch: "aarch64"
5156
- name: "windows_x86_64"
5257
runs-on: "windows-2019"
5358
os: "windows"
@@ -93,7 +98,7 @@ jobs:
9398
run: |
9499
95100
if [[ "${{ matrix.os }}" == "almalinux" ]] || [[ "${{ matrix.os }}" == "ubuntu" ]]; then
96-
export RELEASE_PREFIX="mlir_manylinux_x86_64"
101+
export RELEASE_PREFIX="mlir_manylinux_${{ matrix.arch }}"
97102
else
98103
export RELEASE_PREFIX="mlir_${{ matrix.name }}"
99104
fi
@@ -236,6 +241,7 @@ jobs:
236241
]
237242
include: [
238243
{runs-on: "ubuntu-22.04", name: "ubuntu_x86_64", os: "ubuntu"},
244+
{runs-on: "ubuntu-22.04", name: "ubuntu_aarch64", os: "ubuntu"},
239245
{runs-on: "windows-2019", name: "windows_x86_64", os: "windows"},
240246
{runs-on: "macos-14", name: "macos_arm64", os: "macos"}
241247
]
@@ -297,6 +303,7 @@ jobs:
297303
"3.12"]
298304
include: [
299305
{runs-on: "ubuntu-22.04", name: "ubuntu_x86_64", os: "ubuntu"},
306+
{runs-on: "ubuntu-22.04", name: "ubuntu_aarch64", os: "ubuntu"},
300307
# TODO(max): enable on windows by statically linking
301308
# {runs-on: "windows-2019", name: "windows_x86_64", os: "windows"},
302309
{runs-on: "macos-14", name: "macos_arm64", os: "macos"}
@@ -356,6 +363,7 @@ jobs:
356363
]
357364
include: [
358365
{runs-on: "ubuntu-22.04", name: "ubuntu_x86_64", os: "ubuntu"},
366+
{runs-on: "ubuntu-22.04", name: "ubuntu_aarch64", os: "ubuntu"},
359367
# TODO(max): enable on windows by statically linking
360368
# {runs-on: "windows-2019", name: "windows_x86_64", os: "windows"},
361369
{runs-on: "macos-14", name: "macos_arm64", os: "macos"},
@@ -417,6 +425,7 @@ jobs:
417425
matrix:
418426
name: [
419427
"ubuntu_x86_64",
428+
"ubuntu_aarch64",
420429
"macos_arm64",
421430
"windows_x86_64"
422431
]

projects/eudsl-llvmpy/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ build-verbosity = 1
4242
skip = ["*-manylinux_i686", "*-musllinux*", "pp*", "*-win32"]
4343
archs = ["auto64"]
4444
manylinux-x86_64-image = "manylinux_2_28"
45+
manylinux-aarch64-image = "manylinux_2_28"
4546
environment-pass = [
4647
"LLVM_DIR",
4748
"CMAKE_GENERATOR",

projects/eudsl-nbgen/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ build = ["cp39*"]
4141
skip = ["*-manylinux_i686", "*-musllinux*", "pp*", "*-win32"]
4242
archs = ["auto64"]
4343
manylinux-x86_64-image = "manylinux_2_28"
44+
manylinux-aarch64-image = "manylinux_2_28"
4445
environment-pass = [
4546
"LLVM_DIR",
4647
"CMAKE_GENERATOR",

projects/eudsl-py/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ build-verbosity = 1
4646
skip = ["*-manylinux_i686", "*-musllinux*", "pp*", "*-win32"]
4747
archs = ["auto64"]
4848
manylinux-x86_64-image = "manylinux_2_28"
49+
manylinux-aarch64-image = "manylinux_2_28"
4950
environment-pass = [
5051
"LLVM_DIR",
5152
"MLIR_DIR",

projects/eudsl-tblgen/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ build-verbosity = 1
3333
skip = ["*-manylinux_i686", "*-musllinux*", "pp*", "*-win32"]
3434
archs = ["auto64"]
3535
manylinux-x86_64-image = "manylinux_2_28"
36+
manylinux-aarch64-image = "manylinux_2_28"
3637
environment-pass = [
3738
"LLVM_DIR",
3839
"CMAKE_GENERATOR",

0 commit comments

Comments
 (0)