Update wiguard-tools.yml

dependabot/github_actions/actions/checkout-3.1.0
fscarmen 4 years ago committed by GitHub
parent 909bcc34bf
commit aa5f167f13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 43
      .github/workflows/wiguard-tools.yml

@ -4,43 +4,30 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
WireGuard-go: builds-for-windows:
name: Cross compile wireguard-tools
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
env:
workdir: ./wireguard-tools-source
steps: steps:
- name: Checkout code - name: clone repository
uses: actions/checkout@master
with:
fetch-depth: 0
- name: Git clone wireguard-tools
run: | run: |
git clone https://git.zx2c4.com/wireguard-tools ${{ env.workdir }} git clone https://git.zx2c4.com/wireguard-tools
cp ./.github/wireguard-tools-releaser.yml ${{ env.workdir }}/.goreleaser.yml cd wireguard-tools
- name: setup Deno
- name: Set up GoReleaser uses: denoland/setup-deno@v1.1.0
uses: actions/setup-go@v2
with: with:
go-version: "1.18" deno-version: canary
- name: create build directory
- name: Run GoReleaser run: mkdir build
uses: goreleaser/goreleaser-action@v2 - name: compile binary for windows
run: deno compile --allow-read --allow-write --allow-run --allow-env --unstable --target x86_64-pc-windows-msvc --output ./build/wg-quick ./src/wg-quick.ts
- uses: actions/upload-artifact@v2
with: with:
distribution: goreleaser name: wg-quick
workdir: ${{ env.workdir }} path: build/wg-quick.exe
version: latest
args: release --rm-dist
- name: Release binaries - name: Release binaries
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
tag_name: wireguard-tools tag_name: wireguard-tools
files: ${{ env.workdir }}/dist/*.tar.gz files: ./build/wg-quick*
env: env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

Loading…
Cancel
Save