-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (34 loc) · 931 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build
on:
workflow_call:
permissions:
contents: read
jobs:
wheel:
name: Build Python wheel
strategy:
matrix:
os: ["darwin","linux", "windows"]
arch: ["amd64", "arm64"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
check-latest: true
cache: false
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install mage
run: go install github.com/magefile/[email protected]
- name: Run repo target
run: mage repo:init
- name: Run build target
run: mage build ${{ matrix.os }} ${{ matrix.arch }}
- name: Upload wheels artifact
uses: actions/upload-artifact@v4
with:
name: mlflow-go-backend-wheels-${{ matrix.os }}-${{ matrix.arch }}
path: dist/*.whl