mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-01-18 11:12:43 +08:00
Skip steps that require a GDS token in PR builds.
This commit is contained in:
parent
64b43dc209
commit
04d7e4f4bb
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -73,6 +73,8 @@ jobs:
|
|||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
components: ${{ matrix.components }}
|
components: ${{ matrix.components }}
|
||||||
gds-token: ${{ matrix.set-gds-token && secrets.GDS_TOKEN || '' }}
|
gds-token: ${{ matrix.set-gds-token && secrets.GDS_TOKEN || '' }}
|
||||||
|
# Skip in PR builds that require a GDS token (secrets are not available in PR runs)
|
||||||
|
if: github.event_name != 'pull_request' || !matrix.set-gds-token
|
||||||
- name: Check environment
|
- name: Check environment
|
||||||
run: |
|
run: |
|
||||||
echo "GRAALVM_HOME: $GRAALVM_HOME"
|
echo "GRAALVM_HOME: $GRAALVM_HOME"
|
||||||
@ -85,13 +87,14 @@ jobs:
|
|||||||
java --version
|
java --version
|
||||||
java --version | grep "GraalVM" || exit 34
|
java --version | grep "GraalVM" || exit 34
|
||||||
native-image --version
|
native-image --version
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows' && (github.event_name != 'pull_request' || !matrix.set-gds-token)
|
||||||
- name: Check Windows environment
|
- name: Check Windows environment
|
||||||
run: |
|
run: |
|
||||||
echo "GRAALVM_HOME: $env:GRAALVM_HOME"
|
echo "GRAALVM_HOME: $env:GRAALVM_HOME"
|
||||||
echo "JAVA_HOME: $env:JAVA_HOME"
|
echo "JAVA_HOME: $env:JAVA_HOME"
|
||||||
java --version
|
java --version
|
||||||
native-image --version
|
native-image --version
|
||||||
|
if: runner.os == 'Windows'
|
||||||
test-ce: # make sure the action works on a clean machine without building
|
test-ce: # make sure the action works on a clean machine without building
|
||||||
needs: test
|
needs: test
|
||||||
name: CE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
|
name: CE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user