forked from ochinchina/supervisord
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.22 KB
/
release_binaries.yml
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
---
name: Release Binaries
on:
push:
tags:
- '*'
jobs:
goreleaser:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Install cross-compiler for linux/arm64
run: sudo apt-get update -q && sudo apt-get -y install gcc-aarch64-linux-gnu
- name: Install UPX
env:
UPXVER: "4.2.4"
run: |
if [[ ! -f "upx/${UPXVER}/upx" ]]; then
echo "Installing upx .."
curl -OL "https://github.com/upx/upx/releases/download/v${UPXVER}/upx-${UPXVER}-amd64_linux.tar.xz"
tar xvf "upx-${UPXVER}-amd64_linux.tar.xz"
mkdir -p upx
mv "upx-${UPXVER}-amd64_linux" "upx/${UPXVER}"
rm -f "upx-${UPXVER}-amd64_linux.tar.xz"
fi
export PATH="./upx/${UPXVER}/:${PATH}"
upx --version | grep -E '^upx'
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: "~> v2"
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}