fix release #6
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: Server | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
go: [1.21] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
- name: Setup Go | |
uses: actions/[email protected] | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Install go deps | |
run: go mod tidy | |
- name: Lint | |
if: matrix.os == 'ubuntu-latest' | |
run: make lint | |
- name: Build | |
run: cd cmd/server && go build -ldflags "-s -w" |