Update README.md #116
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' }} |