fscarmen【Sing-box 全家桶】
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
test/.github/workflows/wireguard-go.yml

39 lines
955 B

name: Build Wireguard-go
on:
push:
tags:
- "*"
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/amd64
goos: [linux, windows, darwin]
goarch: ["386", amd64]
exclude:
- goarch: "386"
goos: darwin
steps:
- uses: actions/checkout@v2
- name: Setting up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
- name: Building wireguard-go
run: |
git clone https://git.zx2c4.com/wireguard-go
cd wireguard-go
- name: Binaries Release
uses: softprops/action-gh-release@v1
with:
files: /opt/release/*
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}