Skip to content

ci: build against the bundle this SDK generates from #4

ci: build against the bundle this SDK generates from

ci: build against the bundle this SDK generates from #4

Workflow file for this run

on:
push:
branches:
- '**'
pull_request:
workflow_call:
inputs:
artifact:
description: >-
Take the bundle from this run's artifacts rather than the latest
release. Only set it when the caller shares the run.
required: false
type: boolean
default: false
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/setup@ci/modernise-actions
with:
repository: vrchatapi/vrchatapi-python
ref: ${{ inputs.ref || github.ref }}
bundle: openapi-legacy.yaml
artifact: ${{ inputs.artifact }}
generator: 6.2.1
- uses: actions/setup-python@v7
with:
python-version: '3.14'
- run: bash ./generate.sh openapi-legacy.yaml "$(yq -r '.info.version' openapi-legacy.yaml)"
- run: python -m pip install --upgrade pip build
- run: python -m build
- run: python -m pip install dist/*.whl
- run: python -c "import vrchatapi; print(vrchatapi.__name__)"