-
-
Notifications
You must be signed in to change notification settings - Fork 178
51 lines (43 loc) · 1.44 KB
/
release_binary.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Release Binaries
on:
push:
paths-ignore:
- '**.md'
- 'Makefile'
- 'config.json'
tags:
- '*'
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- 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 (amd64)
run: |
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: 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 }}"
prerelease: true
title: "WebP Server Go"
files: |
builds/webp-server-linux-amd64
builds/webp-server-linux-amd64.sha256
builds/webp-server-linux-arm64
builds/webp-server-linux-arm64.sha256