Skip to content

Commit 71b479d

Browse files
committed
chore: Add manual build workflow for Linux AMD64
1 parent 618d2a3 commit 71b479d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
build-linux-amd64:
2+
environment: release
3+
runs-on: linux
4+
env:
5+
OLLAMA_SKIP_MANIFEST_CREATE: '1'
6+
BUILD_ARCH: amd64
7+
PUSH: '1'
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
submodules: recursive
12+
- name: Set Version
13+
shell: bash
14+
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
15+
- name: Login to Docker Hub
16+
uses: docker/login-action@v3
17+
with:
18+
username: ${{ vars.DOCKER_USER }}
19+
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
20+
- run: |
21+
./scripts/build_linux.sh
22+
./scripts/build_docker.sh
23+
mv dist/deps/* dist/
24+
- uses: actions/upload-artifact@v4
25+
with:
26+
name: dist-linux-amd64
27+
path: |
28+
dist/*linux*
29+
!dist/*-cov
30+
# 添加 workflow_dispatch 触发器
31+
on:
32+
workflow_dispatch:

0 commit comments

Comments
 (0)