GraalVM Dev CI #389
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
# WARNING: Do not edit this file directly. Instead, go to: | |
# | |
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows | |
# | |
# and edit them there. Note that it will be sync'ed to all the Micronaut repos | |
name: GraalVM Dev CI | |
on: | |
schedule: | |
- cron: "0 1 * * 1-5" # Mon-Fri at 1am UTC | |
jobs: | |
build_matrix: | |
if: github.repository != 'micronaut-projects/micronaut-project-template' | |
runs-on: ubuntu-latest | |
env: | |
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | |
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }} | |
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} | |
outputs: | |
matrix: ${{ steps.build-matrix.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Matrix | |
uses: micronaut-projects/github-actions/graalvm/build-matrix@master | |
id: build-matrix | |
build: | |
needs: build_matrix | |
if: github.repository != 'micronaut-projects/micronaut-project-template' | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 6 | |
matrix: | |
java: ['dev', 'latest-ea'] | |
distribution: ['graalvm-community', 'graalvm'] | |
native_test_task: ${{ fromJson(needs.build_matrix.outputs.matrix).native_test_task }} | |
exclude: | |
- java: 'dev' | |
distribution: 'graalvm' | |
- java: 'latest-ea' | |
distribution: 'graalvm-community' | |
env: | |
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | |
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }} | |
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Pre-Build Steps | |
uses: micronaut-projects/github-actions/graalvm/pre-build@master | |
id: pre-build | |
with: | |
java: ${{ matrix.java }} | |
distribution: ${{ matrix.distribution }} | |
- name: Build Steps | |
uses: micronaut-projects/github-actions/graalvm/build@master | |
id: build | |
env: | |
GH_TOKEN_PUBLIC_REPOS_READONLY: ${{ secrets.GH_TOKEN_PUBLIC_REPOS_READONLY }} | |
GH_USERNAME: ${{ secrets.GH_USERNAME }} | |
GRAALVM_QUICK_BUILD: true | |
with: | |
nativeTestTask: ${{ matrix.native_test_task }} | |
- name: Post-Build Steps | |
uses: micronaut-projects/github-actions/graalvm/post-build@master | |
id: post-build | |
with: | |
java: ${{ matrix.java }} |