Skip to content

Commit

Permalink
add aie ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jorendumoulin committed Dec 17, 2024
1 parent 3fb8e31 commit ccf1cab
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/ci-aie.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI - MLIR-AIE-based Testing

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
env:
MLIR-AIE-Version: 0.0.1.2024121504+aff6da3
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache MLIR-AIE setup
id: cache-binary
uses: actions/cache@v4
with:
path: mlir_aie
key: mlir_aie-${{ env.MLIR-AIE-Version }}

- name: Download and setup MLIR-AIE
if: steps.cache-binary.outputs.cache-hit != 'true'
run: |
wget -q https://github.com/Xilinx/mlir-aie/releases/download/latest-wheels/mlir_aie-${{ env.MLIR-AIE-Version }}-py3-none-manylinux_2_35_x86_64.whl -O mlir_aie.whl
unzip -q mlir_aie.whl
- name: Add MLIR-AIE to PATH
run: |
echo "$(pwd)/mlir_aie/bin" >> $GITHUB_PATH
echo "PATH after adding MLIR-AIE:"
echo $PATH
- name: Test aie-opt version
run: |
aie-opt --version
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install the project
run: uv sync --extra dev

- name: Run all tests
run: uv run lit tests/filecheck -v

0 comments on commit ccf1cab

Please sign in to comment.