From 3e08f16c7aaf4e6f145d45f631a5fda78b01d998 Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Thu, 27 Oct 2022 14:20:10 +0200 Subject: [PATCH] [GitHub Actions] Install GraalVM for non JDK 8 builds. --- .github/workflows/common.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml index 89cbb15c..9bdc657e 100644 --- a/.github/workflows/common.yml +++ b/.github/workflows/common.yml @@ -121,9 +121,18 @@ jobs: shell: bash run: find . -type f -name "*.sh" -exec chmod a+x '{}' \; - name: 'Configure: Install Java' + if: ${{ needs.parameters.outputs.jdk_build == '8' }} uses: actions/setup-java@v1 with: java-version: ${{ needs.parameters.outputs.jdk_build }} + - name: 'Configure: Install GraalVM' + if: ${{ needs.parameters.outputs.jdk_build != '8' }} + uses: graalvm/setup-graalvm@v1 + with: + version: '22.3' + java-version: ${{ needs.parameters.outputs.jdk_build }} +# components: 'native-image' # add when starting native builds. + github-token: ${{ secrets.GITHUB_TOKEN }} - name: 'Configure: Install xsltproc' run: sudo apt-get install -q -y xsltproc - name: 'Action: build initial dependencies' @@ -175,9 +184,18 @@ jobs: shell: bash run: find . -type f -name "*.sh" -exec chmod a+x '{}' \; - name: 'Configure: Install Java' + if: ${{ needs.parameters.outputs.jdk_build == '8' }} uses: actions/setup-java@v1 with: java-version: ${{ needs.parameters.outputs.jdk_build }} + - name: 'Configure: Install GraalVM' + if: ${{ needs.parameters.outputs.jdk_build != '8' }} + uses: graalvm/setup-graalvm@v1 + with: + version: '22.3' + java-version: ${{ needs.parameters.outputs.jdk_build }} + # components: 'native-image' # add when starting native builds. + github-token: ${{ secrets.GITHUB_TOKEN }} - name: 'Configure: Install xsltproc' run: sudo apt-get install -q -y xsltproc - name: 'Configure: Install Pack' @@ -223,9 +241,18 @@ jobs: shell: bash run: find . -type f -name "*.sh" -exec chmod a+x '{}' \; - name: 'Configure: Install Java' + if: ${{ needs.parameters.outputs.jdk_build == '8' }} uses: actions/setup-java@v1 with: java-version: ${{ needs.parameters.outputs.jdk_build }} + - name: 'Configure: Install GraalVM' + if: ${{ needs.parameters.outputs.jdk_build != '8' }} + uses: graalvm/setup-graalvm@v1 + with: + version: '22.3' + java-version: ${{ needs.parameters.outputs.jdk_build }} + # components: 'native-image' # add when starting native builds. + github-token: ${{ secrets.GITHUB_TOKEN }} - name: 'Configure: Install xsltproc' run: sudo apt-get install -q -y xsltproc - name: 'Configure: Install Pack' @@ -272,9 +299,18 @@ jobs: shell: bash run: find . -type f -name "*.sh" -exec chmod a+x '{}' \; - name: 'Configure: Install Java' + if: ${{ needs.parameters.outputs.jdk_build == '8' }} uses: actions/setup-java@v1 with: java-version: ${{ needs.parameters.outputs.jdk_build }} + - name: 'Configure: Install GraalVM' + if: ${{ needs.parameters.outputs.jdk_build != '8' }} + uses: graalvm/setup-graalvm@v1 + with: + version: '22.3' + java-version: ${{ needs.parameters.outputs.jdk_build }} + # components: 'native-image' # add when starting native builds. + github-token: ${{ secrets.GITHUB_TOKEN }} - name: 'Configure: Install xsltproc' run: sudo apt-get install -q -y xsltproc - name: 'Configure: Install Pack'