Skip to content

Commit

Permalink
chore: self-hosted
Browse files Browse the repository at this point in the history
  • Loading branch information
polvalente committed Jun 8, 2024
1 parent ed19e70 commit 453ff55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:

jobs:
download_iree:
runs-on: macos-14
runs-on: self-hosted
strategy:
matrix:
OTP_VERSION: ["27.0"]
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
build_artifacts:
name: "Build artifacts (${{matrix.build_target}} / Elixir ${{ matrix.ELIXIR_VERSION }} / OTP ${{ matrix.OTP_VERSION }})"
runs-on: macos-14
runs-on: self-hosted
strategy:
matrix:
OTP_VERSION: ["27.0"]
Expand Down
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ IREE_NS = iree-$(IREE_GIT_REV)

IREE_INSTALL_DIR ?= $(IREE_DIR)/install

compile: $(IREE_INSTALL_DIR)
compile: build_runtime install_runtime

$(IREE_DIR):
./scripts/clone_iree.sh $(BUILD_CACHE) $(IREE_GIT_REV) $(IREE_DIR)
Expand Down Expand Up @@ -79,7 +79,9 @@ else
BUILD_TARGET_FLAGS = ""
endif

$(IREE_RUNTIME_BUILD_DIR): $(IREE_DIR)
$(IREE_RUNTIME_BUILD_DIR): build_runtime

build_runtime: $(IREE_DIR)
cmake -G Ninja -S $(IREE_DIR) -B $(IREE_RUNTIME_BUILD_DIR) \
-DCMAKE_INSTALL_PREFIX=$(IREE_RUNTIME_BUILD_DIR)/install \
-DIREE_BUILD_TESTS=OFF \
Expand All @@ -91,9 +93,10 @@ $(IREE_RUNTIME_BUILD_DIR): $(IREE_DIR)
cmake --build $(IREE_RUNTIME_BUILD_DIR)
cmake --build $(IREE_RUNTIME_BUILD_DIR) --target install

$(IREE_INSTALL_DIR): $(IREE_DIR) $(IREE_RUNTIME_BUILD_DIR)
$(IREE_INSTALL_DIR): install_runtime

install_runtime: $(IREE_DIR) $(IREE_RUNTIME_BUILD_DIR)
cmake -S cmake -B $(IREE_CMAKE_BUILD_DIR) \
-DIREE_RUNTIME_INCLUDE_PATH=$(IREE_RUNTIME_INCLUDE_PATH) \
-DCMAKE_BUILD_TYPE=$(IREE_CMAKE_CONFIG)\
-DIREE_BUILD_COMPILER=OFF\
-DIREE_RUNTIME_BUILD_DIR=$(IREE_RUNTIME_BUILD_DIR)\
Expand Down

0 comments on commit 453ff55

Please sign in to comment.