Skip to content

Add a check for OpenJDK #428

Add a check for OpenJDK

Add a check for OpenJDK #428

Workflow file for this run

name: Test mmtk-dev-env
on:
pull_request:
branches:
- main
push:
branches:
- main
# This workflow will be triggered in the mmtk-core CI to make sure mmtk-core can build with the docker image.
workflow_dispatch:
jobs:
build-mmtk-core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build docker image
run: |
docker build -t mmtk-dev .
- name: Build mmtk-core
# 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"
- 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"