Skip to content

Commit 3a16cd9

Browse files
committed
refactor: split host/embedded builds
1 parent ef0b8f1 commit 3a16cd9

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

.github/workflows/embedded_devices.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ jobs:
6363
- name: Clone IREE
6464
if: steps.cache-iree-dir.outputs.cache-hit != 'true'
6565
run: make clone_iree
66+
- name: Compile Host
67+
run: ./scripts/build_and_package.sh --target=host
6668
- name: Compile
67-
run: ./scripts/build_and_package.sh --target=${{ matrix.build_target }} --build-host
69+
run: ./scripts/build_and_package.sh --target=${{ matrix.build_target }}
6870
- name: Release Artifacts
6971
uses: softprops/action-gh-release@v2
7072
if: startsWith(github.ref, 'refs/tags/')

scripts/build_and_package.sh

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,13 @@ get_nproc() {
1010
fi
1111
}
1212

13-
# Initialize variable
14-
build_host_flag=false
15-
1613
# Parse options
1714
while [[ $# -gt 0 ]]; do
1815
case $1 in
1916
--target=*)
2017
IREE_BUILD_TARGET="${1#*=}"
2118
shift # Shift past the argument
2219
;;
23-
--build-host)
24-
build_host_flag=true
25-
shift # Shift past the argument
26-
;;
2720
*)
2821
echo "Unknown option: $1"
2922
exit 1
@@ -75,12 +68,6 @@ build() {
7568
fi
7669
}
7770

78-
if $build_host_flag; then
79-
echo "Building Host Runtime"
80-
build host
81-
echo "Done building Host Runtime"
82-
fi
83-
8471
build $IREE_BUILD_TARGET
8572
IREE_INSTALL_DIR=$(install_dir $IREE_BUILD_TARGET)
8673

0 commit comments

Comments
 (0)