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-07-17 06:08:12 +00:00
|
|
|
go_versions: [ '1.21', '1.22' ]
|
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
|