Update wireguard-go.yml

dependabot/github_actions/actions/checkout-3.1.0
fscarmen 4 years ago committed by GitHub
parent 236b5f4d93
commit b4bdcf392f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 35
      .github/workflows/wireguard-go.yml

@ -4,36 +4,35 @@ on:
workflow_dispatch:
jobs:
Build:
name: Building Linux Version
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
go build -v -o "wireguard-go"
mkdir /opt/release
cp wireguard-go /opt/release
# - name: Uploading artifact
# uses: actions/upload-artifact@v2
# with:
# name: wireguard-go # 生成的压缩包名称
# path: /opt/release # 需要打包的路径
# - name: Downloading artifact
# uses: actions/download-artifact@v2
# with:
# name: wireguard-go
# path: /opt/release
- name: Binaries Release
uses: softprops/action-gh-release@v1
with:
files: /opt/release/wireguard-go
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
files: /opt/release/*
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

Loading…
Cancel
Save