-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (34 loc) · 1.02 KB
/
wireguard-go.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
name: Cross compile WireGuard-go
on:
workflow_dispatch:
jobs:
WireGuard-go:
name: Cross compile WireGuard-go
runs-on: ubuntu-20.04
env:
workdir: ./wireguard-go-source
steps:
- name: Checkout code
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Git clone WireGuard-go
run: |
git clone https://git.zx2c4.com/wireguard-go ${{ env.workdir }}
cp ./.github/wireguard-go-releaser.yml ${{ env.workdir }}/.goreleaser.yml
- name: Set up GoReleaser
uses: actions/[email protected]
with:
go-version: "1.20"
- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
distribution: goreleaser
workdir: ${{ env.workdir }}
version: latest
args: release --clean
- name: Release binaries
uses: softprops/action-gh-release@v2
with:
tag_name: wireguard-go
files: ${{ env.workdir }}/dist/*.tar.gz