Skip to content

Commit

Permalink
fix(ci): only load with one platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkness4 committed Oct 28, 2023
1 parent a1bd96c commit 8f3318f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8f3318f

Please sign in to comment.