Elffuss BraidHub

kikocis/lancedb public

main · 1.1 KiBRawPermalink
1# We create a composite action to be re-used both for testing and for releasing
2name: build_wheel
3description: "Build a lance wheel"
4inputs:
5 python-minor-version:
6 description: "8, 9, 10, 11"
7 required: true
8 args:
9 description: "--release"
10 required: false
11 default: ""
12runs:
13 using: "composite"
14 steps:
15 - name: Install Protoc v21.12
16 working-directory: C:\
17 run: |
18 New-Item -Path 'C:\protoc' -ItemType Directory
19 Set-Location C:\protoc
20 Invoke-WebRequest https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-win64.zip -OutFile C:\protoc\protoc.zip
21 7z x protoc.zip
22 Add-Content $env:GITHUB_PATH "C:\protoc\bin"
23 shell: powershell
24 - name: Build wheel
25 uses: PyO3/maturin-action@v1
26 with:
27 command: build
28 args: ${{ inputs.args }}
29 docker-options: "-e PIP_EXTRA_INDEX_URL=https://pypi.fury.io/lancedb/"
30 working-directory: python
31 - uses: actions/upload-artifact@v3
32 with:
33 name: windows-wheels
34 path: python\target\wheels