2023-05-31 16:24:17 +00:00
|
|
|
on: [pull_request]
|
2021-05-21 15:45:01 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-05-31 16:24:17 +00:00
|
|
|
builds:
|
|
|
|
name: Builds
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-08-21 09:47:18 +00:00
|
|
|
go_versions: [ '1.22', '1.23' ]
|
2023-05-31 16:24:17 +00:00
|
|
|
fail-fast: false
|
2021-05-21 15:45:01 +00:00
|
|
|
steps:
|
2023-05-31 16:24:17 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-05-21 15:45:01 +00:00
|
|
|
|
|
|
|
- name: Set up Go
|
2023-05-31 16:24:17 +00:00
|
|
|
uses: actions/setup-go@v3
|
2021-05-21 15:45:01 +00:00
|
|
|
with:
|
2023-05-31 16:24:17 +00:00
|
|
|
go-version: '${{ matrix.go_versions }}'
|
2021-05-21 15:45:01 +00:00
|
|
|
|
2023-05-31 16:24:17 +00:00
|
|
|
- name: Build binary
|
|
|
|
run: make
|
2023-11-22 07:56:05 +00:00
|
|
|
|
|
|
|
- name: Check dirty suffix
|
|
|
|
run: if [[ $(make version) == *"dirty"* ]]; then echo "Version has dirty suffix" && exit 1; fi
|