Skip to content

Commit

Permalink
Switch graalvm CI setup to the graalvm/setup-graalvm action.
Browse files Browse the repository at this point in the history
GraalVM has a new versioning scheme and the URLs changed too, lets
use the opportunity to switch to the setup-graalvm action.

This will also move the minimal version to JDK 11 since graalvm CE
has only support for 17 and 20. 11 appears to be already EOL.

The R component seems to be no longer available.
  • Loading branch information
mbien committed Aug 22, 2023
1 parent fa5e96b commit ef6077d
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ env:
# see https://github.com/actions/setup-java#supported-distributions
default_java_distribution: 'zulu'

# graalvm, graalvm-community, or mandrel
# see https://github.com/graalvm/setup-graalvm#options
default_graalvm_distribution: 'graalvm-community'

jobs:

Expand Down Expand Up @@ -2525,7 +2528,7 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
graal: [ '20.3.0', '21.1.0' ]
graal: [ '11', '17.0.8' ]
fail-fast: false

steps:
Expand All @@ -2542,18 +2545,22 @@ jobs:
- name: Extract
run: tar --zstd -xf build.tar.zst

- name: Setup GraalVM
run: |
URL=https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-${{ matrix.graal }}/graalvm-ce-java8-linux-amd64-${{ matrix.graal }}.tar.gz
curl -L $URL | tar -xz
GRAALVM=`pwd`/graalvm-ce-java8-${{ matrix.graal }}
echo "JAVA_HOME=$GRAALVM" >> $GITHUB_ENV
- uses: graalvm/setup-graalvm@v1
if: ${{ matrix.graal != '11' }}
with:
# in contrast to the setup-java action, this needs full version strings
java-version: ${{ matrix.graal }}
distribution: ${{ env.default_graalvm_distribution }}
components: 'python, ruby, js'

- name: Setup GraalVM Languages
run: |
$JAVA_HOME/bin/gu install python
$JAVA_HOME/bin/gu install R
$JAVA_HOME/bin/gu install ruby
# for older graal versions, remove section and if-condition once min version is at 17+
- uses: graalvm/setup-graalvm@v1
if: ${{ matrix.graal == '11' }}
with:
version: '22.3.3'
java-version: 11
distribution: ${{ env.default_graalvm_distribution }}
components: 'python, ruby, js'

- name: platform/core.network
run: ant $OPTS -f platform/core.network test
Expand Down

0 comments on commit ef6077d

Please sign in to comment.