|
|
|
@ -3,6 +3,9 @@ name: Cross compile WireGuard-go |
|
|
|
on: |
|
|
|
on: |
|
|
|
workflow_dispatch: |
|
|
|
workflow_dispatch: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
workdir: ./compile/wireguard-go |
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
jobs: |
|
|
|
WireGuard-go: |
|
|
|
WireGuard-go: |
|
|
|
name: Cross compile WireGuard-go |
|
|
|
name: Cross compile WireGuard-go |
|
|
|
@ -17,15 +20,14 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
- name: Git clone |
|
|
|
- name: Git clone |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
git clone https://git.zx2c4.com/wireguard-go |
|
|
|
git clone https://git.zx2c4.com/wireguard-go "./compile" |
|
|
|
cp ./.github/wireguard-go-releaser.yml wireguard-go/.goreleaser.yml |
|
|
|
cp ./.github/wireguard-go-releaser.yml $workdir/.goreleaser.yml |
|
|
|
|
|
|
|
|
|
|
|
- name: Run GoReleaser |
|
|
|
- name: Run GoReleaser |
|
|
|
uses: goreleaser/goreleaser-action@v2 |
|
|
|
uses: goreleaser/goreleaser-action@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
distribution: goreleaser |
|
|
|
distribution: goreleaser |
|
|
|
version: latest |
|
|
|
version: latest |
|
|
|
workdir: ./wireguard-go |
|
|
|
|
|
|
|
args: release --rm-dist |
|
|
|
args: release --rm-dist |
|
|
|
|
|
|
|
|
|
|
|
- name: Release binaries |
|
|
|
- name: Release binaries |
|
|
|
|