-
Notifications
You must be signed in to change notification settings - Fork 14
95 lines (92 loc) · 3.01 KB
/
wheel_applesiliconmac_nightly.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# GH actions.
name: Wheel-AppleSiliconMac-Nightly
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 8 * * *' # 8 AM UTC -> 4 AM EDT
jobs:
Build:
runs-on: [self-hosted, macOS, ARM64]
defaults:
run:
shell: 'bash -l {0}'
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Setup script env
run: |
mv conda/tvm-unity/build-environment.yaml 3rdparty/tlcpack/conda/build-environment.yaml
rm -rf conda
ln -s 3rdparty/tlcpack/conda conda
- name: Checkout source
run: |
git clone https://github.com/mlc-ai/relax tvm --recursive --single-branch --branch mlc
git clone https://github.com/mlc-ai/mlc-llm mlc-llm --recursive --single-branch --branch main
- name: Build mlc-ai @ 3.8
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_ai_wheel_single_python_apple_silicon.sh wheel-3-8
- name: Build mlc-ai @ 3.9
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_ai_wheel_single_python_apple_silicon.sh wheel-3-9
- name: Build mlc-ai @ 3.10
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_ai_wheel_single_python_apple_silicon.sh wheel-3-10
- name: Build mlc-ai @ 3.11
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_ai_wheel_single_python_apple_silicon.sh wheel-3-11
- name: Build mlc-ai @ 3.12
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_ai_wheel_single_python_apple_silicon.sh wheel-3-12
- name: Build mlc-chat @ 3.8
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_chat_wheel_single_python_apple_silicon.sh wheel-3-8
- name: Build mlc-chat @ 3.9
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_chat_wheel_single_python_apple_silicon.sh wheel-3-9
- name: Build mlc-chat @ 3.10
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_chat_wheel_single_python_apple_silicon.sh wheel-3-10
- name: Build mlc-chat @ 3.11
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_chat_wheel_single_python_apple_silicon.sh wheel-3-11
- name: Build mlc-chat @ 3.12
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_chat_wheel_single_python_apple_silicon.sh wheel-3-12
# Use system python instead of conda for upload
- name: Wheel-Deploy
if: github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.MLC_GITHUB_TOKEN }}
with:
files: |
tvm/python/dist/*.whl
mlc-llm/python/dist/*.whl
tag_name: v0.9.dev0
prerelease: true