2023-04-14 15:29:42 +03:00
|
|
|
on: [push]
|
|
|
|
env:
|
|
|
|
GIN_MODE: release
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-04-14 15:33:53 +03:00
|
|
|
name: Build the API
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-04-14 15:35:46 +03:00
|
|
|
go: [ '1.17', '1.18', '1.19', '1.20' ]
|
2023-04-14 15:29:42 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-04-14 15:56:44 +03:00
|
|
|
- name: Workaround for zstd
|
|
|
|
run: apt update && apt install zstd
|
2023-04-14 15:35:46 +03:00
|
|
|
- name: Set up Go
|
2023-04-14 15:33:53 +03:00
|
|
|
uses: actions/setup-go@v3
|
2023-04-14 15:29:42 +03:00
|
|
|
with:
|
2023-04-14 15:33:53 +03:00
|
|
|
go-version: ${{ matrix.go }}
|
2023-04-14 15:29:42 +03:00
|
|
|
check-latest: true
|
2023-04-14 15:35:46 +03:00
|
|
|
- name: Run build
|
2023-04-14 16:00:48 +03:00
|
|
|
run: go build -ldflags "-s -w"
|
|
|
|
with:
|
|
|
|
name: holochecker_api
|
|
|
|
path: holochecker_api
|