Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
uubulb committed Oct 3, 2024
1 parent 7ab7c97 commit 22d1c95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
bash compare.sh
- name: Trigger release
if: ${{ env.SYNCED == 0 }}
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
Expand Down
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

0 comments on commit 22d1c95

Please sign in to comment.