-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 916 Bytes
/
build.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
name: Build and upload binaries
permissions:
contents: write
on:
push:
tags:
- '*'
jobs:
build:
strategy:
matrix:
os: [linux]
arch: [amd64,arm64]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Build for ${{ matrix.os }}-{{ matrix.arch }}
run: go build -tags osusergo,netgo -o ultra-dumb-200-server-${{ matrix.os }}-${{ matrix.arch }} -v .
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
- name: Upload binaries to github release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ultra-dumb-200-server-${{ matrix.os }}-${{ matrix.arch }}
tag: ${{ github.ref }}
overwrite: true