Upgrade containerisation and Micronaut-webserver workshops #12
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: GraalVM Native Image Build Tools Maven Pipeline | |
| on: | |
| push: | |
| paths: | |
| - 'native-image/graalvm-native-image-build-tools/lab/**' | |
| - '.github/workflows/github-actions-native-image-build-tools-maven.yml' | |
| jobs: | |
| build: | |
| name: Native Image Build Tools Maven on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [macos-latest, ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up GraalVM | |
| uses: graalvm/setup-graalvm@v1 | |
| with: | |
| java-version: '25' | |
| distribution: 'graalvm' | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and Test Java Code | |
| run: | | |
| cd native-image/native-build-tools/lab/ | |
| ./mvnw --no-transfer-progress clean test | |
| ./mvnw --no-transfer-progress package | |
| java -jar ./target/demo-0.0.1-SNAPSHOT-jar-with-dependencies.jar com.example.demo.StringReverser reverse Java | |
| ./mvnw --no-transfer-progress -Pnative -DskipNativeTests=true -DskipNativeBuild=true -Dagent=true test | |
| ./mvnw --no-transfer-progress -Pnative -DskipNativeBuild=true -Dagent=true test | |
| ./target/native-tests | |
| ./mvnw --no-transfer-progress -Pnative -Dagent=true package | |
| ./target/demo com.example.demo.StringReverser reverse hello |