mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
Use QEMU to release ARM64 binary as well (#246)
This commit is contained in:
parent
a2585463ad
commit
8d0ecdf4e0
19
.github/workflows/release_binary.yaml
vendored
19
.github/workflows/release_binary.yaml
vendored
@ -17,19 +17,28 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Make WebP Server Go
|
- name: Make WebP Server Go (amd64)
|
||||||
run: |
|
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/
|
sudo chown -R $USER:$USER builds/
|
||||||
sha256sum builds/webp-server-linux-amd64 > builds/webp-server-linux-amd64.sha256
|
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: |
|
run: |
|
||||||
ldd builds/webp-server-linux-amd64
|
ldd builds/webp-server-linux-amd64
|
||||||
|
|
||||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
- uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
@ -38,3 +47,5 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
builds/webp-server-linux-amd64
|
builds/webp-server-linux-amd64
|
||||||
builds/webp-server-linux-amd64.sha256
|
builds/webp-server-linux-amd64.sha256
|
||||||
|
builds/webp-server-linux-arm64
|
||||||
|
builds/webp-server-linux-arm64.sha256
|
2
Makefile
2
Makefile
@ -35,7 +35,7 @@ test:
|
|||||||
go test -v -coverprofile=coverage.txt -covermode=atomic ./...
|
go test -v -coverprofile=coverage.txt -covermode=atomic ./...
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf builds prefetch remote-raw exhaust tools coverage.txt
|
rm -rf prefetch remote-raw exhaust tools coverage.txt
|
||||||
|
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user