From 22d1c95ae66435f1352f5015d4798c096a165208 Mon Sep 17 00:00:00 2001 From: uubulb Date: Fri, 4 Oct 2024 04:01:39 +0800 Subject: [PATCH] fix --- .github/workflows/build.yml | 5 ----- .github/workflows/sync.yml | 1 + build.sh | 6 +++--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b3fd07c..95ff206 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,11 +9,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: 'stable' - - name: Setup FreeBSD base run: | wget -q https://download.freebsd.org/releases/amd64/14.1-RELEASE/base.txz diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 969e952..99e1920 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -17,6 +17,7 @@ jobs: bash compare.sh - name: Trigger release + if: ${{ env.SYNCED == 0 }} env: GH_REPO: ${{ github.repository }} GH_TOKEN: ${{ github.token }} diff --git a/build.sh b/build.sh index 0345152..d3ef9f7 100644 --- a/build.sh +++ b/build.sh @@ -18,7 +18,7 @@ ldflags="\ -X 'github.com/alist-org/alist/v3/internal/conf.WebVersion=$webVersion' \ " -CGO_ENABLED=1 -CC="clang --target=aarch64-unknown-freebsd14.1 --sysroot=/opt/freebsd" -GOOS=freebsd +export CGO_ENABLED=1 +export CC="clang --target=x86_64-unknown-freebsd14.1 --sysroot=/opt/freebsd" +export GOOS=freebsd go build -ldflags="$ldflags" -tags=jsoniter .