Update general_client_v2.go #165
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
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Go (Linux/Win/MacOS) | |
on: | |
push: | |
branches: [ "*" ] | |
# Build semver tags as releases. | |
tags: [ '*.*' ] | |
pull_request: | |
branches: [ "*" ] | |
# Build semver tags as releases. | |
tags: [ '*.*' ] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["windows-latest", "ubuntu-latest", "ubuntu-22.04", "ubuntu-20.04", "macos-latest"] | |
go-version: ["1.23", "1.22", "1.21", "1.20", "1.19", "1.18"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Build | |
run: go build -v -a -ldflags "-X main.GIT_VERSION=$(git rev-parse --abbrev-ref HEAD)-$(git rev-parse HEAD)" | |
- name: Show Build Result | |
run: ls -al | |
shell: bash | |
- name: Test | |
run: go test -v ./... | |
shell: bash | |
- name: Run Check Version | |
run: ./MaoServerDiscovery -v |