Skip to content

Commit

Permalink
fix: host runtime build
Browse files Browse the repository at this point in the history
  • Loading branch information
polvalente committed Jul 16, 2024
1 parent edd163f commit d7b43d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/embedded_devices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ jobs:
if: steps.cache-iree-dir.outputs.cache-hit != 'true'
run: make clone_iree
- name: Compile Host
run: ./scripts/build_and_package.sh --target=host
run: BUILD_IREE_RUNTIME=true ./scripts/build_and_package.sh --target=host
- name: Compile
run: ./scripts/build_and_package.sh --target=${{ matrix.build_target }}
run: BUILD_IREE_RUNTIME=false ./scripts/build_and_package.sh --target=${{ matrix.build_target }}
- name: Release Artifacts
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/precompiled_nif.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
NX_IREE_PREFER_PRECOMPILED: false
NX_IREE_SOURCE_DIR: ./build-cache/iree
IREE_GIT_REV: candidate-20240604.914
BUILD_IREE_RUNTIME: false
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -112,7 +113,7 @@ jobs:
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.21.x'
cmake-version: "3.21.x"

- name: checkout
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ $(IREE_INSTALL_DIR): $(NX_IREE_SOURCE_DIR) $(CMAKE_SOURCES)
cmake --install $(IREE_CMAKE_BUILD_DIR) --config $(IREE_CMAKE_CONFIG) --prefix $(IREE_INSTALL_DIR)

.PHONY: iree_host
ifeq ($(IREE_BUILD_TARGET), host)
ifeq ($(BUILD_IREE_RUNTIME), true)
iree_host:
@echo "Building IREE runtime host binaries at $(IREE_HOST_BUILD_DIR)."
cmake -G Ninja -B $(IREE_HOST_BUILD_DIR) \
Expand All @@ -120,7 +120,7 @@ iree_host:
cmake --build $(IREE_HOST_BUILD_DIR) --target install
else
iree_host:
@echo "No host build directory specified. Skipping."
@echo "Not building IREE runtime host binaries. Skipping."
endif

### NxIREE Runtime NIF library
Expand Down

0 comments on commit d7b43d1

Please sign in to comment.