Skip to content

Update Go base to 1.22 #29

Update Go base to 1.22

Update Go base to 1.22 #29

Workflow file for this run

name: Main
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.22
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
go mod download
go mod verify
- name: Build
run: |
export CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }}
go build -ldflags "-s -w" \
-trimpath \
-o ./hashcolor-${{ matrix.goos }}-${{ matrix.goarch }} \
./cmd/hashcolor/main.go