-
Notifications
You must be signed in to change notification settings - Fork 22
69 lines (60 loc) · 1.69 KB
/
release.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: build relay for all platforms
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
make-release:
runs-on: ubuntu-latest
steps:
- name: Install build-essential and LMDB development files
run: |
sudo apt-get update
sudo apt-get install -y build-essential liblmdb-dev
- name: Create Release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
continue-on-error: true
build-all-for-all:
runs-on: ubuntu-latest
needs:
- make-release
strategy:
matrix:
goos: [linux, freebsd, darwin, windows]
goarch: [amd64, arm64, riscv64]
exclude:
- goarch: arm64
goos: windows
- goarch: riscv64
goos: windows
- goarch: riscv64
goos: darwin
steps:
- uses: actions/checkout@v3
- name: Install build-essential and LMDB development files
run: |
sudo apt-get update
sudo apt-get install -y build-essential liblmdb-dev
- name: Set CGO_ENABLED=1
run: |
export CGO_ENABLED=1
- name: Build application with Go
run: |
go env # Print Go environment details for debugging
go build ./...
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
overwrite: true
md5sum: false
sha256sum: false
compress_assets: false