Skip to content

Commit

Permalink
Pass bin dir to build_tests_using_package for easier substitutions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Jul 24, 2024
1 parent d8bf4ac commit 40329ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
--env IREE_CUDA_DISABLE \
--env IREE_HIP_DISABLE \
gcr.io/iree-oss/nvidia@sha256:433e072f075f90fdf07471673626b17091d8d8e2395626f1e6ac6c98803c8807 \
./build_tools/pkgci/build_tests_using_package.sh ${INSTALL_DIR}
./build_tools/pkgci/build_tests_using_package.sh ${INSTALL_DIR}/bin
- name: "Running GPU tests"
env:
IREE_CTEST_LABEL_REGEX: ^requires-gpu|^driver=vulkan$|^driver=cuda$
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
# --env IREE_CUDA_DISABLE \
# --env IREE_HIP_DISABLE \
# gcr.io/iree-oss/nvidia@sha256:433e072f075f90fdf07471673626b17091d8d8e2395626f1e6ac6c98803c8807 \
# ./build_tools/pkgci/build_tests_using_package.sh ${INSTALL_DIR}
# ./build_tools/pkgci/build_tests_using_package.sh ${INSTALL_DIR}/bin
# - name: "Running GPU tests"
# env:
# IREE_CTEST_LABEL_REGEX: ^requires-gpu-sm80|^requires-gpu|^driver=vulkan$|^driver=cuda$
Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:
run: tar -xf "${INSTALL_DIR_ARCHIVE}"
- name: "Building tests"
run: |
./build_tools/pkgci/build_tests_using_package.sh ${INSTALL_DIR}
./build_tools/pkgci/build_tests_using_package.sh ${INSTALL_DIR}/bin
- name: "Running GPU tests"
env:
IREE_CTEST_LABEL_REGEX: ^requires-gpu|^driver=hip$
Expand Down Expand Up @@ -287,7 +287,7 @@ jobs:
run: tar -xf "${INSTALL_DIR_ARCHIVE}"
- name: "Building tests"
run: |
./build_tools/pkgci/build_tests_using_package.sh ${INSTALL_DIR}
./build_tools/pkgci/build_tests_using_package.sh ${INSTALL_DIR}/bin
- name: "Running GPU tests"
env:
IREE_CTEST_LABEL_REGEX: ^requires-gpu|^driver=hip$
Expand Down Expand Up @@ -326,7 +326,7 @@ jobs:
run: tar -xf "${INSTALL_DIR_ARCHIVE}"
- name: "Building tests"
run: |
./build_tools/pkgci/build_tests_using_package.sh ${INSTALL_DIR}
./build_tools/pkgci/build_tests_using_package.sh ${INSTALL_DIR}/bin
- name: "Running GPU tests"
env:
CTEST_PARALLEL_LEVEL: 1
Expand Down
4 changes: 2 additions & 2 deletions build_tools/pkgci/build_tests_using_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
set -xeuo pipefail


PACKAGE_DIR="$1"
BINARY_DIR="$1"
BUILD_DIR="${BUILD_DIR:-build-tests}"

source build_tools/scripts/install_lit.sh
Expand Down Expand Up @@ -76,7 +76,7 @@ cmake_args=(
"-DIREE_BUILD_PYTHON_BINDINGS=OFF"
"-DIREE_BUILD_COMPILER=OFF"
"-DIREE_BUILD_ALL_CHECK_TEST_MODULES=OFF"
"-DIREE_HOST_BIN_DIR=${PACKAGE_DIR?}/bin"
"-DIREE_HOST_BIN_DIR=${BINARY_DIR?}"
"-DLLVM_EXTERNAL_LIT=${LLVM_EXTERNAL_LIT?}"
)
cmake_args+=(${cmake_config_options[@]})
Expand Down

0 comments on commit 40329ff

Please sign in to comment.