frostfs-http-gw/.forgejo/workflows/builds.yml

24 lines
522 B
YAML
Raw Normal View History

on: [pull_request]
2021-04-30 12:27:45 +00:00
jobs:
builds:
name: Builds
runs-on: ubuntu-latest
strategy:
matrix:
go_versions: [ '1.20', '1.21' ]
fail-fast: false
2021-04-30 12:27:45 +00:00
steps:
- uses: actions/checkout@v3
2021-04-30 12:27:45 +00:00
- name: Set up Go
uses: actions/setup-go@v3
2021-04-30 12:27:45 +00:00
with:
go-version: '${{ matrix.go_versions }}'
2021-04-30 12:27:45 +00:00
- name: Build binary
run: make
- name: Check dirty suffix
run: if [[ $(make version) == *"dirty"* ]]; then echo "Version has dirty suffix" && exit 1; fi