-
Notifications
You must be signed in to change notification settings - Fork 50
48 lines (41 loc) · 1.12 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Release build
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-20.04 # explicitly use 20.04, see commit 428c40018a
timeout-minutes: 30
strategy:
fail-fast: false
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: >-
WORKAROUND: Fetch tags that points to the revisions
checked-out(actions/checkout#1467)
run: |-
git fetch --tags --force
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build
run: |
make cross qemu-wrapper vm win-gvproxy win-sshproxy
mv bin/gvproxy.exe bin/gvproxy-windowsgui.exe
- uses: actions/upload-artifact@v4
with:
name: gvisor-tap-vsock-binaries
path: bin/*
- name: Create release on github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create --draft --generate-notes --verify-tag ${{github.ref_name}}
cd bin
sha256sum * >> sha256sums
gh release upload ${{github.ref_name}} *