-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: downstream check for native image tests (#771)
- Loading branch information
Showing
3 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
java-shared-dependencies/.github/workflows/downstream-native-image.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
# Keeping this file separate as the dependencies check would use more | ||
# repositories than needed this downstream check for GraalVM native image | ||
# compilation. | ||
name: downstream | ||
jobs: | ||
# GraalVM job ensures the compatibility of GraaVM version | ||
graalvm: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
graalvm: [22.1.0] | ||
java: [11, 17] | ||
repo: | ||
# GAPIC library that doesn't use a real GCP project in integration tests | ||
- orgpolicy | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: stCarolas/setup-maven@v4 | ||
with: | ||
maven-version: 3.8.1 | ||
- uses: ayltai/setup-graalvm@v1 | ||
with: | ||
java-version: ${{matrix.java}} | ||
# When a new version of native-maven-plugin fails to run in a downstream | ||
# library, it's likely to be an incompatibility with the GraalVM version. | ||
# In that case, you need to upgrade the Docker container used in the | ||
# tests in the downstream repositories (not just this value below). | ||
# Example: https://github.com/googleapis/testing-infra-docker/pull/195 | ||
graalvm-version: ${{matrix.graalvm}} | ||
native-image: true | ||
- run: java -version | ||
- run: sudo apt-get update -y | ||
- run: sudo apt-get install libxml2-utils | ||
- run: .kokoro/downstream-client-library-check.sh ${{matrix.repo}} graalvm |
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
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