Skip to content

Commit 79a467d

Browse files
authored
Merge a6a6355 into 2621de6
2 parents 2621de6 + a6a6355 commit 79a467d

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# SPDX-FileCopyrightText: Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Test mlir-aie wheels
5+
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
wheels-version:
10+
description: 'mlir-aie version to test (e.g., 0.0.1.2025071717+c5b3be6). Use "latest" to install the newest version available.'
11+
required: true
12+
default: 'latest'
13+
14+
jobs:
15+
test:
16+
runs-on: [self-hosted, docker]
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
env:
21+
HOME: /workspace
22+
23+
- name: Prerequisites
24+
uses: ./.github/actions/prereqs
25+
with:
26+
env_name: ci_env
27+
28+
- name: Install wheels
29+
shell: bash
30+
env:
31+
HOME: /workspace
32+
run: |
33+
set -euxo pipefail
34+
source ci_env/bin/activate
35+
WHEELS_URL="https://github.com/Xilinx/mlir-aie/releases/expanded_assets/latest-wheels-2"
36+
if [[ "${{ github.event.inputs.wheels-version }}" == "latest" ]]; then
37+
pip install --upgrade mlir-aie --find-links ${WHEELS_URL}
38+
else
39+
pip install --upgrade mlir-aie==${{ github.event.inputs.wheels-version }} --find-links ${WHEELS_URL}
40+
fi
41+
42+
- name: Build
43+
uses: ./.github/actions/build
44+
with:
45+
env_name: ci_env
46+
cmake_extra_flags: "-DBUILD_APPLICATIONS=OFF -DBUILD_EXAMPLES=ON"
47+
48+
- name: Test
49+
id: test
50+
continue-on-error: true
51+
uses: ./.github/actions/test
52+
with:
53+
env_name: ci_env
54+
55+
- name: Mark workflow as failed if tests failed
56+
if: steps.test.outcome == 'failure'
57+
run: exit 1

0 commit comments

Comments
 (0)