Skip to content

build(deps): bump golang.org/x/image from 0.42.0 to 0.43.0 #225

build(deps): bump golang.org/x/image from 0.42.0 to 0.43.0

build(deps): bump golang.org/x/image from 0.42.0 to 0.43.0 #225

Workflow file for this run

# 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
on:
push:
branches: [ "main" ]
tags:
- v*
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Print Github Build Environment
run: echo "$GITHUB_VARS"
shell: bash
env:
GITHUB_VARS: ${{ toJson(github) }}
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Verify dependencies
run: go mod verify
- name: Vet
run: go vet $(go list ./... | grep -v /vendor/)
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: staticcheck $(go list ./... | grep -v /vendor/)
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: Run golint
run: golint $(go list ./... | grep -v /vendor/)
- name: Compile
run: go build -v ./...
- name: Test
run: go test -v ./...
release:
runs-on: ubuntu-latest
needs:
- test
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
strategy:
matrix:
goos: [linux, darwin, windows]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v6
- name: Print Github Build Environment
run: echo "$GITHUB_VARS"
shell: bash
env:
GITHUB_VARS: ${{ toJson(github) }}
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Build binary
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -v -ldflags="-X github.com/${{ github.repository }}/version.version=${{ github.ref_name }}" -o ./${{ github.event.repository.name }}-${{ matrix.goarch }}-${{ matrix.goos }}
- name: Release
uses: softprops/action-gh-release@v3
with:
files: ./${{ github.event.repository.name }}-${{ matrix.goarch }}-${{ matrix.goos }}