19 lines
419 B
YAML
19 lines
419 B
YAML
on: [push]
|
|
env:
|
|
GIN_MODE: release
|
|
jobs:
|
|
build:
|
|
name: Build the API
|
|
strategy:
|
|
matrix:
|
|
go: [ '1.17', '1.18', '1.19', '1.20' ]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
check-latest: true
|
|
cache: true
|
|
- name: Run build
|
|
run: go build -ldflags "-s -w" |