Prepare upgrade to JDK 25 LTS and 26 EA for GitHub Actions #29
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: native-image/include-resources | |
| on: | |
| push: | |
| paths: | |
| - 'native-image/include-resources/**' | |
| - '.github/workflows/native-image-include-resources.yml' | |
| pull_request: | |
| paths: | |
| - 'native-image/include-resources/**' | |
| - '.github/workflows/native-image-include-resources.yml' | |
| schedule: | |
| - cron: "0 0 1 * *" # run every month | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| run: | |
| name: Run 'native-image/include-resources' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| strategy: | |
| matrix: | |
| java-version: ['25', '26-ea'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: graalvm/setup-graalvm@v1 | |
| with: | |
| java-version: ${{ matrix.java-version }} | |
| distribution: 'graalvm' | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| cache: 'maven' | |
| native-image-job-reports: 'true' | |
| - name: Run 'native-image/include-resources' | |
| run: | | |
| cd native-image/include-resources | |
| javac Fortune.java | |
| native-image -Ob -H:IncludeResources=".*u8$" Fortune | |
| ./fortune |