Skip to content

Commit

Permalink
Use QEMU to release ARM64 binary as well (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
n0vad3v committed Jul 5, 2023
1 parent a258546 commit 8d0ecdf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/release_binary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,28 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Make WebP Server Go
- name: Make WebP Server Go (amd64)
run: |
docker run --rm -w /app -v "$(pwd)":/app webpsh/libvips make
docker run --rm -w /app -v "$(pwd)":/app webpsh/libvips make
sudo chown -R $USER:$USER builds/
sha256sum builds/webp-server-linux-amd64 > builds/webp-server-linux-amd64.sha256
- name: Check for ldd version
- name: Make WebP Server Go (arm64)
run: |
docker run --rm -w /app -v "$(pwd)":/app --platform linux/arm64 webpsh/libvips make
sudo chown -R $USER:$USER builds/
sha256sum builds/webp-server-linux-arm64 > builds/webp-server-linux-arm64.sha256
- name: Check for ldd version(AMD64 only)
run: |
ldd builds/webp-server-linux-amd64
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
Expand All @@ -38,3 +47,5 @@ jobs:
files: |
builds/webp-server-linux-amd64
builds/webp-server-linux-amd64.sha256
builds/webp-server-linux-arm64
builds/webp-server-linux-arm64.sha256
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test:
go test -v -coverprofile=coverage.txt -covermode=atomic ./...

clean:
rm -rf builds prefetch remote-raw exhaust tools coverage.txt
rm -rf prefetch remote-raw exhaust tools coverage.txt


docker:
Expand Down

0 comments on commit 8d0ecdf

Please sign in to comment.