From 8f3318fbf241a9f303b9ee02178b2fa7febb4b3a Mon Sep 17 00:00:00 2001 From: Nguyen Marc Date: Sat, 28 Oct 2023 13:21:51 +0200 Subject: [PATCH] fix(ci): only load with one platform --- .github/workflows/main.yaml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 843a849..37cafe5 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -211,6 +211,17 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max target: busybox + + - name: Build Darwin + uses: docker/build-push-action@v5 + with: + file: Dockerfile.darwin + platforms: linux/amd64 + push: false + tags: darkness4/fc2-live-dl-go:amd64 + cache-from: type=gha + cache-to: type=gha,mode=max + target: busybox load: true - name: Extract binaries @@ -220,14 +231,8 @@ jobs: -v /tmp/out:/out \ --platform linux/amd64 \ --entrypoint sh \ - darkness4/fc2-live-dl-go:latest \ + darkness4/fc2-live-dl-go:amd64 \ -c "mv /fc2-live-dl-go /out/fc2-live-dl-go-darwin-amd64" - docker run --rm -it \ - -v /tmp/out:/out \ - --platform linux/arm64/v8 \ - --entrypoint sh \ - darkness4/fc2-live-dl-go:latest \ - -c "mv /fc2-live-dl-go /out/fc2-live-dl-go-darwin-arm64" - name: Upload binaries uses: actions/upload-artifact@v3