This commit is contained in:
shanshanzhong 2025-09-25 08:36:23 -07:00
parent f3113d787d
commit 02fc54df21

View File

@ -26,11 +26,31 @@ jobs:
- name: Checkout code
uses: https://gitea.cn/actions/checkout@v4
- id: tool-cache
uses: https://${{ vars.GIT_USERNAME }}:${{ vars.GIT_PASSWORD }}@${{ env.DOMAIN_URL }}/actions/gitea-tool-cache@v5
with:
# 只有node支持版本号别名
node-version: lts
- name: Install system tools (jq, docker, curl)
run: |
apt-get update
apt-get install -y jq curl ca-certificates docker.io
docker --version
jq --version
curl --version
- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
echo "BUN_INSTALL=/root/.bun" >> $GITHUB_ENV
echo "PATH=/root/.bun/bin:${PATH}" >> $GITHUB_ENV
/root/.bun/bin/bun --version
- name: Configure npm registry (npmmirror) and canvas mirror
run: |
echo "registry=https://registry.npmmirror.com" >> .npmrc
echo "canvas_binary_host_mirror=https://registry.npmmirror.com/-/binary/canvas" >> .npmrc
- name: Install dependencies (bun)
run: bun install
- name: Run Build Project (turbo via bun)
run: bun run build
- name: Run Build Docker
run: make build