Skip to content

Commit

Permalink
try if other test works
Browse files Browse the repository at this point in the history
  • Loading branch information
rudsberg committed Dec 4, 2024
1 parent 9f287c7 commit d2f642b
Showing 1 changed file with 72 additions and 72 deletions.
144 changes: 72 additions & 72 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,78 +20,78 @@ 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:
# - java-version: 'latest-ea'
# distribution: 'graalvm'
# os: ubuntu-latest
# - java-version: '24-ea'
# distribution: 'graalvm'
# os: ubuntu-latest
# - java-version: '21'
# distribution: ''
# os: ubuntu-latest
# - java-version: 'dev'
# distribution: ''
# os: windows-latest
# - java-version: '21'
# distribution: 'graalvm-community'
# os: ubuntu-latest
# components: 'native-image' # should print a warning but not fail
# - java-version: '21.0.0' # test for GA version (see #63)
# distribution: 'graalvm'
# os: ubuntu-latest
# - java-version: '17'
# 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
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
- java-version: '24-ea'
distribution: 'graalvm'
os: ubuntu-latest
# - java-version: '21'
# distribution: ''
# os: ubuntu-latest
# - java-version: 'dev'
# distribution: ''
# os: windows-latest
# - java-version: '21'
# distribution: 'graalvm-community'
# os: ubuntu-latest
# components: 'native-image' # should print a warning but not fail
# - java-version: '21.0.0' # test for GA version (see #63)
# distribution: 'graalvm'
# os: ubuntu-latest
# - java-version: '17'
# 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
# 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

0 comments on commit d2f642b

Please sign in to comment.