Skip to content

ci: use the shared SDK specification action #1

ci: use the shared SDK specification action

ci: use the shared SDK specification action #1

Workflow file for this run

on:
push:
branches:
- '**'
pull_request:
workflow_call:
inputs:
spec-artifact:
description: >-
Artifact holding the bundled specification. Only reachable when the
caller shares this run; when empty the latest published one is used.
required: false
type: string
default: ''
ref:
description: Ref of this repository to build.
required: false
type: string
default: main
name: Build
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: vrchatapi/specification/.github/actions/sdk-spec@ci/modernise-actions
with:
repository: vrchatapi/vrchatapi-java
ref: ${{ inputs.ref || github.ref }}
generator-version: 7.24.0
spec-artifact: ${{ inputs.spec-artifact }}
- uses: actions/setup-java@v5.7.0
with:
java-version: '17'
distribution: temurin
- run: bash ./generate.sh openapi.json
- run: mvn -B -ntp compile