Skip to content

Commit 8d6810e

Browse files
committed
build bindings using llvm distro wheel
1 parent 3004d9f commit 8d6810e

File tree

8 files changed

+197
-231
lines changed

8 files changed

+197
-231
lines changed

.github/workflows/build_llvm.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,20 @@ jobs:
6161
os: "almalinux"
6262
host-arch: x86_64
6363
target-arch: x86_64
64+
6465
- name: "manylinux_aarch64"
6566
runs-on: "ubuntu-22.04-arm"
6667
container: "quay.io/pypa/manylinux_2_34_aarch64"
6768
os: "almalinux"
6869
host-arch: "aarch64"
6970
target-arch: "aarch64"
71+
7072
- name: "windows_amd64"
7173
runs-on: "windows-2022"
7274
os: "windows"
7375
host-arch: amd64
7476
target-arch: amd64
77+
7578
- name: "macos_arm64"
7679
runs-on: "macos-14"
7780
os: "macos"
@@ -304,6 +307,7 @@ jobs:
304307
export LLVM_SOURCE_DIR="$PWD/third_party/llvm-project"
305308
pushd $LLVM_SOURCE_DIR && LLVM_SHA_SHORT="$(git rev-parse --short HEAD)" && popd
306309
export WHEEL_VERSION="$(date +'%Y%m%d')+$LLVM_SHA_SHORT"
310+
echo "WHEEL_VERSION=$WHEEL_VERSION" >> $GITHUB_OUTPUT
307311
308312
###############################
309313
# Build MLIR/LLVM distro
@@ -321,16 +325,15 @@ jobs:
321325

322326
- name: "Save cache"
323327
uses: actions/cache/save@v3
324-
if: (!cancelled())
325-
# if: (!cancelled() && github.event_name == 'push' && github.ref_name == 'main')
328+
if: (!cancelled() && github.event_name == 'push' && github.ref_name == 'main')
326329
with:
327330
path: ${{ steps.setup_base.outputs.cache-dir }}
328331
key: ${{ env.cache-key }}
329332

330333
- name: Upload LLVM distro artifacts
331334
uses: actions/upload-artifact@v4
332335
with:
333-
name: mlir_wasm_artifact
336+
name: mlir_ubuntu_wasm32_artifact
334337
path: llvm-install
335338
if-no-files-found: warn
336339

@@ -356,7 +359,7 @@ jobs:
356359

357360
call-build-python-bindings:
358361

359-
needs: [build]
362+
needs: [build, build-wasm]
360363

361364
permissions:
362365
contents: write

0 commit comments

Comments
 (0)