Skip to content

Commit

Permalink
feat: clone iree
Browse files Browse the repository at this point in the history
  • Loading branch information
polvalente committed Jul 14, 2024
1 parent 6237325 commit 0ac4df7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/precompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
env:
MIX_ENV: prod
NX_IREE_PREFER_PRECOMPILED: false
BUILD_CACHE: ./build-cache
IREE_DIR: ./build-cache/iree
IREE_GIT_REV: candidate-20240604.914
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -45,3 +48,14 @@ jobs:
- name: Get mix deps
if: steps.cache-mix-deps.outputs.cache-hit != 'true'
run: mix deps.get
- name: Cache IREE dir
id: cache-iree-dir
uses: actions/cache@v4
with:
key: iree-dir-${{ env.IREE_GIT_REV }}
path: |
${{ env.IREE_DIR }}
- name: Clone IREE
if: steps.cache-iree-dir.outputs.cache-hit != 'true'
run: |
make clone_iree
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ all: install_runtime nx_iree

compile: install_runtime

.PHONY: clone_iree
clone_iree: $(IREE_DIR)

$(IREE_DIR):
./scripts/clone_iree.sh $(BUILD_CACHE) $(IREE_GIT_REV) $(IREE_DIR)

Expand Down

0 comments on commit 0ac4df7

Please sign in to comment.