chore: Add manual build workflow for Linux AMD64 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build-linux-amd64: | |
environment: release | |
runs-on: linux | |
env: | |
OLLAMA_SKIP_MANIFEST_CREATE: '1' | |
BUILD_ARCH: amd64 | |
PUSH: '1' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set Version | |
shell: bash | |
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ vars.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | |
- run: | | |
./scripts/build_linux.sh | |
./scripts/build_docker.sh | |
mv dist/deps/* dist/ | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: dist-linux-amd64 | |
path: | | |
dist/*linux* | |
!dist/*-cov | |
# 添加 workflow_dispatch 触发器 | |
on: | |
workflow_dispatch: |