From 502288acfebe8a4ecf8c55522ea1592b25d51727 Mon Sep 17 00:00:00 2001 From: Yi Lin Date: Wed, 15 Jan 2025 03:28:40 +0000 Subject: [PATCH] Add a check for OpenJDK --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c4faca..21be1cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,4 +22,16 @@ jobs: # Build with --manifest-path. If we build under the mmtk-core folder with rust-toolchain, cargo will automatically download the correct # toolchain, and we will not be able to test whether the toolchain used in the dockerfile is correct. run: | - docker run mmtk-dev bash -c "git clone https://github.com/mmtk/mmtk-core.git && cargo build --manifest-path=mmtk-core/Cargo.toml" \ No newline at end of file + docker run mmtk-dev bash -c "\ + git clone https://github.com/mmtk/mmtk-core.git && \ + cargo build --manifest-path=mmtk-core/Cargo.toml" + - name: Build OpenJDK + run: | + docker run mmtk-dev bash -c "\ + git clone https://github.com/mmtk/mmtk-openjdk.git && \ + git clone https://github.com/mmtk/openjdk.git && \ + export MMTK_OPENJDK_PATH=\$(realpath mmtk-openjdk) && \ + cd openjdk && \ + export DEBUG_LEVEL=slowdebug && \ + sh configure --disable-warnings-as-errors --with-debug-level=\$DEBUG_LEVEL && \ + make CONF=linux-x86_64-normal-server-\$DEBUG_LEVEL THIRD_PARTY_HEAP=\$MMTK_OPENJDK_PATH/openjdk"