From 1cbe58d76083c63163e8968cd73bb95d411f4a39 Mon Sep 17 00:00:00 2001 From: liwei Date: Sat, 1 Apr 2023 15:56:07 +0800 Subject: [PATCH] ci: fix macos arm build --- .github/workflows/build.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e671a657..16a2e7e3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -127,20 +127,9 @@ jobs: with: go-version: "^1.19" cache: true - - run: mkdir -p ~/image-cache - - id: image-cache - uses: actions/cache@v3 - with: - path: ~/image-cache - key: image-cache-xgo-v1.19 - - if: steps.image-cache.outputs.cache-hit != 'true' - run: | - docker pull techknowlogick/xgo:go-1.19.x - docker save -o ~/image-cache/xgo.tar techknowlogick/xgo:go-1.19.x - - if: steps.image-cache.outputs.cache-hit == 'true' - run: docker load -i ~/image-cache/xgo.tar - name: Build run: | + docker pull techknowlogick/xgo:go-1.19.x go install src.techknowlogick.com/xgo@latest xgo --targets=darwin/arm64 -tags="nosqlite" -ldflags="-w -s" -buildmode=c-shared -pkg=bind/desktop -out=libgopeed . mv libgopeed-*.dylib libgopeed.dylib