Skip to content

Commit

Permalink
Try with 'dev' instead and run 17 version test with logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rudsberg committed Dec 4, 2024
1 parent e1c98d1 commit 3263f96
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 50 deletions.
100 changes: 50 additions & 50 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ jobs:
npm install
- run: |
npm run all
# test:
# name: GraalVM
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# java-version: ['23', '21', '17', '20', 'dev']
# distribution: ['graalvm', 'graalvm-community']
# os: [
# ubuntu-latest,
# macos-latest, # macOS on Apple silicon
# macos-13, # macOS on Intel
# windows-latest
# ]
# set-gds-token: [false]
# components: ['']
# include:
test:
name: GraalVM
runs-on: ${{ matrix.os }}
strategy:
matrix:
java-version: ['23', '21', '17', '20', 'dev']
distribution: ['graalvm', 'graalvm-community']
os: [
ubuntu-latest,
macos-latest, # macOS on Apple silicon
macos-13, # macOS on Intel
windows-latest
]
set-gds-token: [false]
components: ['']
include:
# - java-version: 'latest-ea'
# distribution: 'graalvm'
# os: ubuntu-latest
Expand All @@ -59,39 +59,39 @@ jobs:
# distribution: 'graalvm'
# os: ubuntu-latest
# set-gds-token: true
# - java-version: '17.0.13'
# distribution: 'graalvm'
# os: ubuntu-latest
# set-gds-token: true
# steps:
# - uses: actions/checkout@v4
# - name: Run setup-graalvm action
# uses: ./
# with:
# java-version: ${{ matrix.java-version }}
# distribution: ${{ matrix.distribution }}
# github-token: ${{ secrets.GITHUB_TOKEN }}
# components: ${{ matrix.components }}
# gds-token: ${{ matrix.set-gds-token && secrets.GDS_TOKEN || '' }}
# - name: Check environment
# run: |
# echo "GRAALVM_HOME: $GRAALVM_HOME"
# if [[ "${{ matrix.java-version }}" == "dev" ]]; then
# [[ "$GRAALVM_HOME" == *"$RUNNER_TEMP"* ]] || exit 12
# else
# [[ "$GRAALVM_HOME" == *"$RUNNER_TOOL_CACHE"* ]] || exit 23
# fi
# echo "JAVA_HOME: $JAVA_HOME"
# java --version
# java --version | grep "GraalVM" || exit 34
# native-image --version
# if: runner.os != 'Windows'
# - name: Check Windows environment
# run: |
# echo "GRAALVM_HOME: $env:GRAALVM_HOME"
# echo "JAVA_HOME: $env:JAVA_HOME"
# java --version
# native-image --version
- java-version: '17.0.13'
distribution: 'graalvm'
os: ubuntu-latest
set-gds-token: true
steps:
- uses: actions/checkout@v4
- name: Run setup-graalvm action
uses: ./
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.distribution }}
github-token: ${{ secrets.GITHUB_TOKEN }}
components: ${{ matrix.components }}
gds-token: ${{ matrix.set-gds-token && secrets.GDS_TOKEN || '' }}
- name: Check environment
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
if [[ "${{ matrix.java-version }}" == "dev" ]]; then
[[ "$GRAALVM_HOME" == *"$RUNNER_TEMP"* ]] || exit 12
else
[[ "$GRAALVM_HOME" == *"$RUNNER_TOOL_CACHE"* ]] || exit 23
fi
echo "JAVA_HOME: $JAVA_HOME"
java --version
java --version | grep "GraalVM" || exit 34
native-image --version
if: runner.os != 'Windows'
- name: Check Windows environment
run: |
echo "GRAALVM_HOME: $env:GRAALVM_HOME"
echo "JAVA_HOME: $env:JAVA_HOME"
java --version
native-image --version
# test-ce: # make sure the action works on a clean machine without building
# needs: test
# name: CE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
Expand Down Expand Up @@ -429,7 +429,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ./
with:
java-version: 'latest-ea' # For some reason 'latest-ea' is not found on ubuntu and macos, https://github.com/rudsberg/setup-graalvm/actions/runs/12142968278/job/33858727921
java-version: 'dev' # For some reason 'latest-ea' is not found on ubuntu and macos, https://github.com/rudsberg/setup-graalvm/actions/runs/12142968278/job/33858727921
distribution: 'graalvm'
native-image-enable-sbom: 'true'
- name: Build Maven project and verify SBOM was generated
Expand Down
2 changes: 2 additions & 0 deletions dist/main/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/graalvm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ async function downloadGraalVMJDK(
downloadUrl: string,
javaVersion: string
): Promise<string> {
console.log('Download URL: ' + downloadUrl)
console.log('java-version: ' + javaVersion)
try {
return await downloadTool(downloadUrl)
} catch (error) {
Expand Down

0 comments on commit 3263f96

Please sign in to comment.