Skip to content

Update build system #11

Update build system

Update build system #11

Workflow file for this run

---
name: ci
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- run: go version
- name: Build
run: make
- name: Print --version output
run: build/gamon3 -v
- name: Print embedded module version information
run: go version -m build/gamon3
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- run: go version
- name: Run tests
run: make test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- run: go version
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.6
check-release-build-parity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- run: go version
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: "~> v2"
install-only: true
- name: Show GoReleaser version
run: goreleaser -v
- name: Compare Makefile builds to GoReleaser builds
run: scripts/check-reproducible-builds