mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-03-14 15:00:10 +08:00
Modify test.yml such that it only tests 'test-sbom'
This commit is contained in:
parent
0cff2d09f2
commit
d4b97a410d
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
@ -18,9 +18,10 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
- run: |
|
||||||
npm install
|
npm install
|
||||||
- run: |
|
# - run: |
|
||||||
npm run all
|
# npm run all
|
||||||
test:
|
test:
|
||||||
|
if: ${{ github.ref != 'refs/heads/sbom-support' }}
|
||||||
name: GraalVM
|
name: GraalVM
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
@ -93,6 +94,7 @@ jobs:
|
|||||||
java --version
|
java --version
|
||||||
native-image --version
|
native-image --version
|
||||||
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
|
||||||
|
if: ${{ github.ref != 'refs/heads/sbom-support' }}
|
||||||
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 }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@ -162,6 +164,7 @@ jobs:
|
|||||||
gu.cmd remove native-image
|
gu.cmd remove native-image
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
test-ee:
|
test-ee:
|
||||||
|
if: ${{ github.ref != 'refs/heads/sbom-support' }}
|
||||||
needs: test
|
needs: test
|
||||||
name: EE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
|
name: EE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
@ -210,6 +213,7 @@ jobs:
|
|||||||
gu.cmd remove native-image
|
gu.cmd remove native-image
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
test-mandrel:
|
test-mandrel:
|
||||||
|
if: ${{ github.ref != 'refs/heads/sbom-support' }}
|
||||||
needs: test
|
needs: test
|
||||||
name: ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
|
name: ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@ -254,6 +258,7 @@ jobs:
|
|||||||
native-image --version
|
native-image --version
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
test-liberica:
|
test-liberica:
|
||||||
|
if: ${{ github.ref != 'refs/heads/sbom-support' }}
|
||||||
needs: test
|
needs: test
|
||||||
name: Liberica (${{ matrix.java-version }}, '${{ matrix.java-package }}', ${{ matrix.os }})
|
name: Liberica (${{ matrix.java-version }}, '${{ matrix.java-package }}', ${{ matrix.os }})
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@ -296,6 +301,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
test-native-image-windows:
|
test-native-image-windows:
|
||||||
|
if: ${{ github.ref != 'refs/heads/sbom-support' }}
|
||||||
name: native-image on windows-latest
|
name: native-image on windows-latest
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
permissions:
|
permissions:
|
||||||
@ -318,6 +324,7 @@ jobs:
|
|||||||
native-image HelloWorld
|
native-image HelloWorld
|
||||||
./helloworld
|
./helloworld
|
||||||
test-native-image-windows-msvc:
|
test-native-image-windows-msvc:
|
||||||
|
if: ${{ github.ref != 'refs/heads/sbom-support' }}
|
||||||
name: native-image on windows-2022
|
name: native-image on windows-2022
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
permissions:
|
permissions:
|
||||||
@ -340,6 +347,7 @@ jobs:
|
|||||||
native-image HelloWorld
|
native-image HelloWorld
|
||||||
./helloworld
|
./helloworld
|
||||||
test-native-image-musl:
|
test-native-image-musl:
|
||||||
|
if: ${{ github.ref != 'refs/heads/sbom-support' }}
|
||||||
name: native-image-musl on ubuntu-latest
|
name: native-image-musl on ubuntu-latest
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
@ -363,6 +371,7 @@ jobs:
|
|||||||
native-image --static --libc=musl HelloWorld
|
native-image --static --libc=musl HelloWorld
|
||||||
./helloworld
|
./helloworld
|
||||||
test-extensive:
|
test-extensive:
|
||||||
|
if: ${{ github.ref != 'refs/heads/sbom-support' }}
|
||||||
name: extensive tests on ubuntu-latest
|
name: extensive tests on ubuntu-latest
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
@ -418,14 +427,15 @@ jobs:
|
|||||||
- name: Remove components
|
- name: Remove components
|
||||||
run: gu remove espresso llvm-toolchain nodejs python ruby wasm
|
run: gu remove espresso llvm-toolchain nodejs python ruby wasm
|
||||||
test-sbom:
|
test-sbom:
|
||||||
needs: test
|
if: ${{ github.ref == 'refs/heads/sbom-support' }}
|
||||||
name: test 'native-image-enable-sbom' option
|
name: test 'native-image-enable-sbom' option
|
||||||
runs-on: ubuntu-latest
|
runs-on: macos-latest # TODO: use matrix vlaue
|
||||||
|
# TODO: use appropriate matrix
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./
|
- uses: ./
|
||||||
with:
|
with:
|
||||||
java-version: '23'
|
java-version: 'latest-ea'
|
||||||
distribution: 'graalvm'
|
distribution: 'graalvm'
|
||||||
native-image-enable-sbom: 'true'
|
native-image-enable-sbom: 'true'
|
||||||
components: 'native-image'
|
components: 'native-image'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user