mirror of https://gitlab.com/fscarmen/test.git
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.
39 lines
993 B
39 lines
993 B
name: Build Wireguard-go
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
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]
|
|
goarch: [amd64, arm64]
|
|
|
|
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 }}
|
|
project_path: "./cmd/test-binary"
|
|
binary_name: "test-binary"
|
|
|
|
- name: Building wireguard-go
|
|
run: |
|
|
git clone https://git.zx2c4.com/wireguard-go
|
|
cd wireguard-go
|
|
go build -o oj ./cmd/oj
|
|
|
|
- name: Binaries Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
tag_name: v2.6
|
|
files: ./cmd/*
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|