mirror of
https://gitlab.com/fscarmen/warp.git
synced 2026-06-15 03:25:42 +08:00
ec79514721
Former-commit-id: 2651ecf259714d104afb9c142864096256e6c043
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: WireGuard-go version
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
WireGuard-go:
|
|
|
|
name: Cross compile WireGuard-go
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
env:
|
|
workdir: ./wireguard-go-source
|
|
version: 0.0.20201118
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3.5.3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Git clone WireGuard-go
|
|
run: |
|
|
mkdir -p ${{ env.workdir }}
|
|
wget https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-${{ env.version }}.tar.xz
|
|
tar -xvf wireguard-go-${{ env.version }}.tar.xz
|
|
cp -r ./wireguard-go-${{ env.version }}/* ${{ env.workdir }}/
|
|
cp ./.github/wireguard-go-releaser.yml ${{ env.workdir }}/.goreleaser.yml
|
|
ls ${{ env.workdir }}
|
|
|
|
- name: Set up GoReleaser
|
|
uses: actions/setup-go@v4.0.1
|
|
with:
|
|
go-version: "1.18"
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v4.3.0
|
|
with:
|
|
distribution: goreleaser
|
|
workdir: ${{ env.workdir }}
|
|
version: latest
|
|
args: release --clean
|
|
|
|
- name: Release binaries
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
tag_name: WireGuard-go_v${{ env.version }}
|
|
files: ${{ env.workdir }}/dist/*.tar.gz
|