Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a check for OpenJDK #6

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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"
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# based-on Ubuntu-18.04 (bionic)
FROM ubuntu:bionic
FROM ubuntu:22.04

ARG DEBIAN_FRONTEND="noninteractive"
ENV TZ="Australia/Sydney"
Expand All @@ -15,7 +14,7 @@ ENV LANG en_US.utf8
RUN apt-get update -y

#install the required packages
RUN apt-get install wget curl git python python3 openjdk-8-jdk openjdk-11-jdk ant autoconf bison pkg-config zip unzip build-essential gettext gcc-multilib libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev libcups2-dev libasound2-dev libfontconfig1-dev libtool -y && apt-get clean
RUN apt-get install wget curl git python3 openjdk-8-jdk openjdk-11-jdk ant autoconf bison pkg-config zip unzip build-essential gettext gcc-multilib libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev libxrandr-dev libcups2-dev libasound2-dev libfontconfig1-dev libtool -y && apt-get clean

# get rust toolchain version
RUN wget https://raw.githubusercontent.com/mmtk/mmtk-core/master/rust-toolchain
Expand Down
Loading