forked from WireGuard/wireguard-go
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.13 KB
/
0.0.20220117.yml
File metadata and controls
43 lines (39 loc) · 1.13 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
name: Build and Release 0.0.20220117
on:
workflow_dispatch: # run manually
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Create a release based on tag
uses: ncipollo/release-action@main
with:
tag: "0.0.20220117"
build:
runs-on: ubuntu-latest
needs:
- release
strategy:
matrix:
# build and publish in parallel: linux/amd64, linux/arm64, linux/arm
goos: ["linux"]
goarch: ["amd64", "arm", "arm64"]
steps:
- name: Check out the tag reference into the Go module directory
uses: actions/checkout@v3
with:
ref: "0.0.20220117"
fetch-depth: 0
- name: build and release wireguard-go binary
env:
GO111MODULE: "on"
uses: wangyoucao577/go-release-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goarm: "7"
binary_name: "wireguard-go"
release_name: "0.0.20220117"
compress_assets: "OFF"
asset_name: wireguard-go_${{ matrix.goarch }}