From 0c61e030ac3051948fe8ae6f86adae046ba2df7f Mon Sep 17 00:00:00 2001 From: Cedar Date: Thu, 14 Nov 2024 15:25:30 -0800 Subject: [PATCH] add iree cloning --- .github/workflows/ci-shark-platform.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci-shark-platform.yml b/.github/workflows/ci-shark-platform.yml index 9621efac9..2a22184a7 100644 --- a/.github/workflows/ci-shark-platform.yml +++ b/.github/workflows/ci-shark-platform.yml @@ -70,6 +70,17 @@ jobs: pip install -f https://iree.dev/pip-release-links.html --upgrade --pre \ iree-base-compiler \ iree-base-runtime + + - name: Clone IREE with matching version + run: | + # Get IREE version and extract the version number + IREE_VERSION=$(pip show iree-base-compiler | grep Version: | cut -d' ' -f2) + echo "Found IREE version: ${IREE_VERSION}" + # Clone IREE repository at the parent directory level. Git clone --branch supports tags. + cd .. && git clone --depth 1 --branch "iree-${IREE_VERSION}" https://github.com/iree-org/iree.git + cd SHARK-Platform + + - name: Install shortfin via dev_me.py run: cd shortfin && python dev_me.py