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:
|
|
|
|
go: [ '1.18', '1.19', '1.20' ]
|
2023-04-14 15:29:42 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-04-14 15:33:53 +03:00
|
|
|
- name: Setup Go
|
|
|
|
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:33:53 +03:00
|
|
|
cache: true
|
|
|
|
- name: Run Build
|
|
|
|
run: go build -ldflags "-s -w"
|