2023-05-31 13:06:00 +00:00
|
|
|
on: [pull_request]
|
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-06-05 11:00:01 +00:00
|
|
|
go_versions: [ '1.21', '1.22' ]
|
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
|