-
Notifications
You must be signed in to change notification settings - Fork 1.3k
69 lines (66 loc) · 1.93 KB
/
bigdl-build-portable-zip.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
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
name: BigDL Build Portable Zip
on:
pull_request:
branches: [ main ]
# paths:
# - 'python/llm/portable-zip/**'
workflow_dispatch:
jobs:
build-cpython:
runs-on: windows-latest
steps:
- uses: ilammy/msvc-dev-cmd@v1
with:
toolset: 14.2
- uses: actions/checkout@v4
with:
repository: 'python/cpython'
ref: '3.9'
- name: Build cpython
run: |
./Tools/msi/buildrelease.bat -x64 --skip-doc --skip-nuget --skip-msi
- name: Rename artifact
shell: bash
run: |
cd ./PCbuild/amd64/en-us
ls | xargs -I {} mv {} cpython-embed-zip.zip
cd ../../..
- uses: actions/upload-artifact@v4
with:
name: cpython-3.9-embed-zip
path: ./PCbuild/amd64/en-us/cpython-embed-zip.zip
build-portable-zip:
needs: build-cpython
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: cpython-3.9-embed-zip
path: ./python/llm/portable-zip/
- name: Build Portable Zip
shell: cmd
run: |
cd .\python\llm\portable-zip
setup.bat --python-zip
powershell -Command "Expand-Archive .\bigdl-llm.zip -DestinationPath .\bigdl-llm-portable"
cd ..\..\..
- uses: actions/upload-artifact@v4
with:
name: bigdl-llm-portable
path: ./python/llm/portable-zip/bigdl-llm-portable/
generate-gpg-sign:
needs: build-portable-zip
runs-on: [self-hosted, Bree]
steps:
- uses: actions/download-artifact@v4
with:
name: bigdl-llm-portable
- name: Generate GPG Sign
shell: bash
run: |
gpg --armor --detach-sign bigdl-llm-portable.zip
- uses: actions/upload-artifact@v4
with:
name: bigdl-llm-portable-gpg-sign
path: ./bigdl-llm-portable.zip.asc