@@ -20,24 +20,19 @@ jobs:
2020 build-linux-x64 :
2121 name : linux-x64
2222 runs-on : ubuntu-22.04
23+ env :
24+ # This overrides OPENJDK_PATH in ci-common.sh
25+ # Note: We cannot use default environment variables (GITHUB_*) in the "env" context. Use github.* instead.
26+ # See: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
27+ OPENJDK_PATH : ${{ github.workspace }}/git/openjdk
2328 steps :
2429 - name : Checkout MMTk OpenJDK binding
2530 uses : actions/checkout@v4
2631 with :
2732 path : ./git/mmtk-openjdk
28- - name : Extract OpenJDK revision
29- id : extract-openjdk-revision
30- run : |
31- OPENJDK_VERSION=`sed -n 's/^openjdk_version.=."\(.*\)"$/\1/p' < git/mmtk-openjdk/mmtk/Cargo.toml`
32- echo "openjdk-revision=$OPENJDK_VERSION" >> $GITHUB_OUTPUT
3333 - name : Checkout OpenJDK
34- uses : actions/checkout@v4
35- with :
36- repository : mmtk/openjdk
37- path : ./git/openjdk
38- ref : ${{ steps.extract-openjdk-revision.outputs.openjdk-revision }}
39- # Patch mmtk-core version if needed
40- - name : Patch mmtk-core version
34+ run : ./git/mmtk-openjdk/.github/scripts/ci-checkout.sh
35+ - name : Patch mmtk-core version if needed
4136 if : ${{ inputs.mmtk-core-repo != '' || inputs.mmtk-core-ref != '' }}
4237 run : |
4338 pip3 install tomlkit
@@ -60,14 +55,16 @@ jobs:
6055 echo "BUILD_SUFFIX=$escaped_build" >> $GITHUB_ENV
6156 fi
6257 - name : Build MMTk OpenJDK ${{ inputs.debug-level }}
63- run : |
64- OPENJDK_PATH=$GITHUB_WORKSPACE/git/openjdk DEBUG_LEVEL=${{ inputs.debug-level }} OPENJDK_BUILD_TARGET=product-bundles ./.github/scripts/ci-build.sh
58+ env :
59+ DEBUG_LEVEL : ${{ inputs.debug-level }}
60+ OPENJDK_BUILD_TARGET : product-bundles
61+ run : ./.github/scripts/ci-build.sh
6562 working-directory : ./git/mmtk-openjdk
6663 - name : Upload bundles
6764 uses : actions/upload-artifact@v4
6865 with :
6966 name : linux-x86_64-server-${{ inputs.debug-level }}-bundles-${{ env.BUILD_SUFFIX }}
7067 path : |
71- ./git/openjdk/build/linux-x86_64-normal- server-${{ inputs.debug-level }}/bundles/*_bin.tar.gz
72- ./git/openjdk/build/linux-x86_64-normal- server-${{ inputs.debug-level }}/bundles/*_bin-debug.tar.gz
68+ ./git/openjdk/build/linux-x86_64-server-${{ inputs.debug-level }}/bundles/*_bin.tar.gz
69+ ./git/openjdk/build/linux-x86_64-server-${{ inputs.debug-level }}/bundles/*_bin-debug.tar.gz
7370 retention-days : 2
0 commit comments