From 4287b0e20b7ac33096354f4dcc344ef079c8af0a Mon Sep 17 00:00:00 2001 From: Thomas Ubensee <34603111+tomuben@users.noreply.github.com> Date: Tue, 15 Oct 2024 08:31:00 -0300 Subject: [PATCH] Don't use installUdfClientDeps.sh for bazel test Background: Tests need to run under Ubuntu 24.04 or later (because of ASAN). installUdfClientDeps.sh is tested only on Ubuntu 22.04. --- .github/workflows/check_bazel_tests.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_bazel_tests.yml b/.github/workflows/check_bazel_tests.yml index ccc31fc9..ea35ed85 100644 --- a/.github/workflows/check_bazel_tests.yml +++ b/.github/workflows/check_bazel_tests.yml @@ -64,9 +64,19 @@ jobs: name: "script_options_parser_legacy_with_asan" steps: - uses: actions/checkout@v4 - - name: Install UDF Client Dependencies + - name: Install JDK and ZMQ run: | - sudo bash scripts/installUdfClientDeps.sh "$UDF_CLIENT_ENV_FILE" + sudo apt-get update + sudo apt-get install -y openjdk-11-jdk libzmq3-dev valgrind + - name: Install bazel + run: | + BAZEL_PACKAGE_FILE="bazel_$BAZEL_PACKAGE_VERSION-linux-x86_64.deb" + BAZEL_PACKAGE_URL="https://github.com/bazelbuild/bazel/releases/download/$BAZEL_PACKAGE_VERSION/$BAZEL_PACKAGE_FILE" + curl -L --output /tmp/"$BAZEL_PACKAGE_FILE" "$BAZEL_PACKAGE_URL" + apt install -y "/tmp/$BAZEL_PACKAGE_FILE" + rm "/tmp/$BAZEL_PACKAGE_FILE" + env: + BAZEL_PACKAGE_VERSION: "7.2.1" - name: Run tests run: | source "$UDF_CLIENT_ENV_FILE"