Test demo #35
This file contains 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: Test demo | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 0 1 * *" # run every month | |
jobs: | |
maven: | |
name: Test Maven | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '22.0.1' | |
distribution: 'graalvm' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
native-image-job-reports: 'true' | |
- name: Build and run with Maven | |
run: | | |
mvn --no-transfer-progress package | |
mvn --no-transfer-progress test | |
mvn --no-transfer-progress exec:exec | |
mvn --no-transfer-progress -Pnative package | |
./target/embedding | |
gradle: | |
name: Test Gradle | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '22.0.1' | |
distribution: 'graalvm' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
native-image-job-reports: 'true' | |
- name: Build and run with Gradle | |
run: | | |
gradle build | |
gradle run | |
gradle test | |
gradle nativeCompile | |
gradle nativeRun |