Skip to content

Update README.md

Update README.md #116

Workflow file for this run

name: Go-build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Go-build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Go-build
run: |
go mod tidy
go fmt
go build -x -v
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: server-${{ matrix.os }}
path: server.exe
if: ${{ matrix.os == 'windows-latest' }}
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: server-${{ matrix.os }}
path: server
if: ${{ matrix.os != 'windows-latest' }}