diff --git a/.github/workflows/embedded_devices.yml b/.github/workflows/embedded_devices.yml index 6eec53f..2dc2ec2 100644 --- a/.github/workflows/embedded_devices.yml +++ b/.github/workflows/embedded_devices.yml @@ -63,8 +63,10 @@ jobs: - name: Clone IREE if: steps.cache-iree-dir.outputs.cache-hit != 'true' run: make clone_iree + - name: Compile Host + run: ./scripts/build_and_package.sh --target=host - name: Compile - run: ./scripts/build_and_package.sh --target=${{ matrix.build_target }} --build-host + run: ./scripts/build_and_package.sh --target=${{ matrix.build_target }} - name: Release Artifacts uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') diff --git a/scripts/build_and_package.sh b/scripts/build_and_package.sh index 278095e..37709c4 100755 --- a/scripts/build_and_package.sh +++ b/scripts/build_and_package.sh @@ -10,9 +10,6 @@ get_nproc() { fi } -# Initialize variable -build_host_flag=false - # Parse options while [[ $# -gt 0 ]]; do case $1 in @@ -20,10 +17,6 @@ while [[ $# -gt 0 ]]; do IREE_BUILD_TARGET="${1#*=}" shift # Shift past the argument ;; - --build-host) - build_host_flag=true - shift # Shift past the argument - ;; *) echo "Unknown option: $1" exit 1 @@ -75,12 +68,6 @@ build() { fi } -if $build_host_flag; then - echo "Building Host Runtime" - build host - echo "Done building Host Runtime" -fi - build $IREE_BUILD_TARGET IREE_INSTALL_DIR=$(install_dir $IREE_BUILD_TARGET)