2024-11-15 11:30:23 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2021-04-30 12:27:45 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-05-31 13:06:00 +00:00
|
|
|
builds:
|
|
|
|
name: Builds
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-08-23 10:19:08 +00:00
|
|
|
go_versions: [ '1.22', '1.23' ]
|
2023-05-31 13:06:00 +00:00
|
|
|
fail-fast: false
|
2021-04-30 12:27:45 +00:00
|
|
|
steps:
|
2023-05-31 13:06:00 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-04-30 12:27:45 +00:00
|
|
|
|
|
|
|
- name: Set up Go
|
2023-05-31 13:06:00 +00:00
|
|
|
uses: actions/setup-go@v3
|
2021-04-30 12:27:45 +00:00
|
|
|
with:
|
2023-05-31 13:06:00 +00:00
|
|
|
go-version: '${{ matrix.go_versions }}'
|
2021-04-30 12:27:45 +00:00
|
|
|
|
2023-05-31 13:06:00 +00:00
|
|
|
- name: Build binary
|
|
|
|
run: make
|
2023-11-22 08:56:59 +00:00
|
|
|
|
|
|
|
- name: Check dirty suffix
|
|
|
|
run: if [[ $(make version) == *"dirty"* ]]; then echo "Version has dirty suffix" && exit 1; fi
|