Skip to content

go-client v0.5.1

go-client v0.5.1 #50

Workflow file for this run

name: build
on: [push]
jobs:
vetlint:
runs-on: ubuntu-latest
name: Go vet lint
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Vet
run: |
go vet ./...
- name: Lint
run: |
go install golang.org/x/lint/golint@latest
golint ./...
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux]
goarch: [amd64, arm, arm64]
go: ['1.22.1']
fail-fast: false
name: Go ${{ matrix.go }} ${{ matrix.goos }} ${{ matrix.goarch }} build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
GOARM: 6
GOTOOLCHAIN: go${{ matrix.go }}
steps:
- name: Install qemu-user
run: |
sudo apt-get update
sudo apt-get -y install qemu-user
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: |
go build -v ./...
build-macos:
runs-on: macos-latest
strategy:
matrix:
go: ['1.22.1']
fail-fast: false
name: Go ${{ matrix.go }} macOS
env:
GOTOOLCHAIN: go${{ matrix.go }}
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: |
go build -v ./...
build-windows:
runs-on: windows-latest
strategy:
matrix:
go: ['1.22.1']
fail-fast: false
name: Go ${{ matrix.go }} Windows
env:
GOTOOLCHAIN: go${{ matrix.go }}
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: |
go build -v ./...