chore(deps): lock file maintenance #3274
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: | |
| pull_request: | |
| workflow_call: | |
| inputs: | |
| ref: | |
| type: "string" | |
| required: true | |
| description: "The ref (branch or tag) to build" | |
| jobs: | |
| build-frontend: | |
| name: "Build frontend" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: "actions/checkout@v6" | |
| with: | |
| ref: "${{ inputs.ref }}" | |
| - uses: "actions/setup-node@v6" | |
| with: | |
| node-version: "lts/*" | |
| check-latest: true | |
| cache: "yarn" | |
| - run: "yarn install --frozen-lockfile --dev" | |
| - run: "yarn build" | |
| - uses: "actions/upload-artifact@v7" | |
| with: | |
| name: "frontend" | |
| path: "dist" | |
| retention-days: 5 | |
| build-backend: | |
| name: "Build backend" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: "actions/checkout@v6" | |
| with: | |
| ref: "${{ inputs.ref }}" | |
| - uses: "astral-sh/setup-uv@v8.2.0" | |
| - run: "export YACV_SKIP_FRONTEND_BUILD=true && uv sync --frozen" | |
| - run: "export YACV_SKIP_FRONTEND_BUILD=true && uv build" | |
| - uses: "actions/upload-artifact@v7" | |
| with: | |
| name: "wheel" | |
| path: "dist/*" | |
| retention-days: 5 | |
| build-logo: | |
| name: "Build logo" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: "actions/checkout@v6" | |
| with: | |
| ref: "${{ inputs.ref }}" | |
| - uses: "astral-sh/setup-uv@v8.2.0" | |
| - run: "export YACV_SKIP_FRONTEND_BUILD=true && uv run --frozen python yacv_server/logo.py" | |
| - uses: "actions/upload-artifact@v7" | |
| with: | |
| name: "logo" | |
| path: "assets/logo_build" | |
| retention-days: 5 | |
| build-example: | |
| name: "Build example" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: "actions/checkout@v6" | |
| with: | |
| ref: "${{ inputs.ref }}" | |
| - uses: "astral-sh/setup-uv@v8.2.0" | |
| - run: "export YACV_SKIP_FRONTEND_BUILD=true && uv run --frozen python example/object.py" | |
| env: | |
| YACV_DISABLE_SERVER: "true" # Ensure the server is not started during the example build | |
| - uses: "actions/upload-artifact@v7" | |
| with: | |
| name: "example" | |
| path: "export" | |
| retention-days: 5 |