ci: split the checks into their own jobs and separate release #161
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 | |
| name: CI | |
| jobs: | |
| # The solution covers the generated client, the wrappers and the examples, so | |
| # a spec change that breaks any of them fails here. | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| repository: vrchatapi/vrchatapi-csharp | |
| 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 | |
| - uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - run: bash ./generate.sh openapi-legacy.yaml "$(yq -r '.info.version' openapi-legacy.yaml)" | |
| - run: dotnet build VRChat.API.sln --configuration Release |