-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.06 KB
/
release.yml
File metadata and controls
43 lines (36 loc) · 1.06 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
# Create a release when a new tag is pushed
name: release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- name: Install apt dependencies
run: sudo apt install -y libpam0g libpam0g-dev gcc-aarch64-linux-gnu
- name: Checkout code
uses: actions/checkout@v6
with:
submodules: recursive
- name: Setup Go
uses: actions/setup-go@v6
- name: Setup nfpm
run: go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
- name: Setup Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build and package for native
run: task package
- name: Build and package for ARM64
run: task package CC="aarch64-linux-gnu-gcc" GOARCH="arm64" GOOS="linux" MULTIARCH_TRIPLET="aarch64-linux-gnu"
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: ./dist/pkg/*