-
-
Notifications
You must be signed in to change notification settings - Fork 188
94 lines (79 loc) · 2.35 KB
/
Copy pathrelease_binary.yaml
File metadata and controls
94 lines (79 loc) · 2.35 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Release Binaries
on:
push:
paths-ignore:
- '**.md'
- 'Makefile'
- 'config.json'
tags:
- '*'
jobs:
build-amd64:
name: Create AMD64 Binary
runs-on: ubuntu-22.04 # Using 22.04 of ubuntu to get the lowest version of glibc
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.26'
- name: Install dependencies
run: |
sudo apt update && sudo apt install --no-install-recommends libvips-dev -y
- name: Make
run: |
make
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
name: webp-server-linux-amd64
path: builds/webp-server-linux-amd64
build-arm64:
name: Create ARM64 Binary
runs-on: ubuntu-22.04-arm # Using 22.04 of ubuntu to get the lowest version of glibc
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.26'
- name: Install dependencies
run: |
sudo apt update && sudo apt install --no-install-recommends libvips-dev -y
- name: Make
run: |
make
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
name: webp-server-linux-arm64
path: builds/webp-server-linux-arm64
release-binary:
name: Release Binary
runs-on: ubuntu-latest
needs: [build-amd64, build-arm64]
steps:
- name: Download Binaries
uses: actions/download-artifact@v4
with:
name: webp-server-linux-amd64
- name: Download Binaries
uses: actions/download-artifact@v4
with:
name: webp-server-linux-arm64
- name: Get SHA256
run: |
sha256sum webp-server-linux-amd64 > webp-server-linux-amd64.sha256
sha256sum webp-server-linux-arm64 >webp-server-linux-arm64.sha256
- uses: 'marvinpinto/action-automatic-releases@latest'
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
prerelease: true
title: 'WebP Server Go'
files: |
webp-server-linux-amd64
webp-server-linux-amd64.sha256
webp-server-linux-arm64
webp-server-linux-arm64.sha256