ci: report how to install what this run built #168
Workflow file for this run
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
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| workflow_call: | |
| inputs: | |
| ref: | |
| description: Ref of this repository to build. | |
| required: false | |
| type: string | |
| default: main | |
| outputs: | |
| artifact: | |
| description: Download URL for the generated SDK. | |
| value: ${{ jobs.generate.outputs.artifact }} | |
| name: CI | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| artifact: ${{ steps.upload.outputs.artifact-url }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| repository: vrchatapi/vrchatapi-java | |
| ref: ${{ inputs.ref || github.ref }} | |
| - uses: vrchatapi/specification/.github/actions/setup-generator@ci/modernise-actions | |
| - uses: vrchatapi/specification/.github/actions/download@ci/modernise-actions | |
| with: | |
| bundle: openapi-legacy.yaml | |
| - run: bash ./generate.sh openapi-legacy.yaml | |
| - id: upload | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: generated-java | |
| path: . | |
| include-hidden-files: true | |
| test: | |
| needs: generate | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java: ['17', '21'] | |
| steps: | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: generated-java | |
| - uses: actions/setup-java@v5.7.0 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: temurin | |
| cache: maven | |
| - run: mvn -B package --no-transfer-progress |