[inference] Pre-start cleanup of stale TPU lockfiles in vLLM native server #1626
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
| name: Dupekit - Build Wheels | |
| on: | |
| workflow_dispatch: {} | |
| push: | |
| branches: [main] | |
| tags: | |
| - "dupekit-v*" | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write # for creating releases | |
| pull-requests: write # for create-pull-request | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| outputs: | |
| should_run: ${{ steps.filter.outputs.relevant }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| relevant: | |
| - 'rust/dupekit/**' | |
| - 'scripts/rust_package.py' | |
| - '.github/workflows/dupekit-wheels.yaml' | |
| # Linux wheels (x86_64 + aarch64) cross-compiled via zig on ubuntu. | |
| # macOS wheels (x86_64 + arm64) built natively on macos-14. | |
| build: | |
| needs: changes | |
| if: needs.changes.outputs.should_run == 'true' | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| targets: linux | |
| - os: macos-14 | |
| targets: macos | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: astral-sh/setup-uv@v7 | |
| - name: Build wheels | |
| run: python scripts/rust_package.py --skip-publish --targets ${{ matrix.targets }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: wheels-${{ matrix.os }} | |
| path: dist/* | |
| release: | |
| if: needs.changes.outputs.should_run == 'true' && github.ref == 'refs/heads/main' | |
| needs: [changes, build] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v7 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| path: dist | |
| merge-multiple: true | |
| - name: Publish release and update pyproject | |
| run: python scripts/rust_package.py --skip-build | |
| - uses: peter-evans/create-pull-request@v7 | |
| with: | |
| branch: auto/update-dupekit-wheels | |
| title: "chore: update dupekit wheels" | |
| body: "Auto-generated: updates pyproject.toml to pin dupekit wheels from commit ${{ github.sha }}." | |
| labels: agent-generated | |
| commit-message: "chore: pin dupekit wheels to ${{ github.sha }}" |