Skip to content

v1.12.7

v1.12.7 #786

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.23'
- 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, s390x]
go: ['1.23.4', '1.22.10']
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 ./...
- name: Test
run: |
go test -v --tags unit ./...
build-macos:
runs-on: macos-latest
strategy:
matrix:
go: ['1.23.4', '1.22.10']
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 ./...
- name: Test
run: |
go test -v --tags unit ./...
build-windows:
runs-on: windows-latest
strategy:
matrix:
go: ['1.23.4', '1.22.10']
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 ./...
- name: Test
run: |
go test -v --tags unit ./...