mirror of
https://github.com/apache/maven-mvnd.git
synced 2026-01-21 01:14:34 +08:00
Native tests
This commit is contained in:
72
.github/workflows/verify.yaml
vendored
72
.github/workflows/verify.yaml
vendored
@@ -20,33 +20,57 @@ name: Linux, Windows and MacOS CI
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
verify-linux-and-windows:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ ubuntu-18.04, windows-2019 ]
|
||||
java: [ 8, 11, 14 ]
|
||||
|
||||
linux:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v1
|
||||
- name: setup-graalvm-ce
|
||||
uses: DeLaGuardo/setup-graalvm@3
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
- name: Build with Maven
|
||||
run: ./mvnw clean verify -B -ntp
|
||||
verify-macos:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ macos-10.15 ]
|
||||
java: [ 11 ]
|
||||
graalvm-version: '20.1.0.java11'
|
||||
- name: gu install native-image
|
||||
run: gu install native-image
|
||||
- name: mvn clean verify
|
||||
run: ./mvnw clean verify -Pnative -B -ntp -e
|
||||
|
||||
windows:
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- name: setup-graalvm-ce
|
||||
uses: DeLaGuardo/setup-graalvm@3
|
||||
with:
|
||||
graalvm-version: '20.1.0.java11'
|
||||
- name: gu install native-image
|
||||
shell: cmd
|
||||
run: gu install native-image
|
||||
- name: choco install visualstudio2017-workload-vctools
|
||||
run: choco install visualstudio2017-workload-vctools
|
||||
- name: Compile native-image.cmd to native-image.exe
|
||||
shell: cmd
|
||||
run: |
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
|
||||
"%JAVA_HOME%\bin\native-image.cmd" -jar "%JAVA_HOME%\lib\graalvm\svm-driver.jar" native-image
|
||||
- name: move native-image.exe %JAVA_HOME%\bin\
|
||||
shell: cmd
|
||||
run: |
|
||||
move native-image.exe "%JAVA_HOME%\bin\"
|
||||
- uses: actions/checkout@v1
|
||||
- name: mvn clean verify
|
||||
shell: cmd
|
||||
run: |
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
|
||||
./mvnw clean verify -Pnative -B -ntp -e
|
||||
|
||||
macos:
|
||||
runs-on: macos-10.15
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v1
|
||||
- name: setup-graalvm-ce
|
||||
uses: DeLaGuardo/setup-graalvm@3
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
- name: Build with Maven
|
||||
run: ./mvnw clean verify -B -ntp
|
||||
graalvm-version: '20.1.0.java11'
|
||||
- name: gu install native-image
|
||||
run: gu install native-image
|
||||
- name: mvn clean verify
|
||||
run: ./mvnw clean verify -Pnative -B -ntp -e
|
||||
|
||||
Reference in New Issue
Block a user