graalvm / setup-graalvm

GitHub Action for setting up GraalVM distributions.
https://www.graalvm.org
Universal Permissive License v1.0
195 stars 28 forks source link

How to cache native-image? #70

Closed seepine closed 4 months ago

seepine commented 11 months ago

image

I use in my hosts act runner, and it took time too much.

      - name: Setup Graalvm
        uses: graalvm/setup-graalvm@v1
        with:
          java-version: '17'
          version: '22.3.2'
          components: 'native-image'
          cache: 'gradle'
fniephaus commented 11 months ago

The GraalVM installation should only be downloaded once per version on self-hosted runners. Could you please share the relevant bits of a build log so that we can understand better what's going on on your machine? You can also restart build with debugging enabled, which may provide more useful info.

fniephaus commented 11 months ago

Oh, I didn't see the screenshot. Maybe rerun with debugging enabled or try upgrading to GraalVM for JDK 17, which has Native Image included (so you no longer need the "components: 'native-image'" line).

seepine commented 4 months ago

Sorry,i didn't follow it.