Skip to content

Fix java build matrix action #19

Fix java build matrix action

Fix java build matrix action #19

name: Build main
on:
push:
branches: ["main"]
# TODO fully implement workflow
jobs:
java-build:
runs-on: ubuntu-22.04
strategy:
matrix:
java-version: [17, 21]
java-http-lib: [restclient]
steps:
- uses: actions/checkout@v4
- name: Generate Java (Spring RestClient) client
uses: openapi-generators/openapitools-generator-action@v1
with:
generator: java
openapi-url: "https://raw.githubusercontent.com/authzed/authzed-go/refs/tags/v1.1.0/proto/apidocs.swagger.json"
config-file: cfg/java.yml
# TODO param for authzed version
command-args: -p "artifactVersion=0.0.0" -p "library=restclient"
- name: Set up JDK ${{ matrix.version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.version }}
distribution: 'temurin'
cache: maven
- name: Switch into generated java client working directory
run: |
cd java-client