API/.gitea/workflows/default.yaml

19 lines
419 B
YAML
Raw Normal View History

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: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:33:53 +03:00
cache: true
2023-04-14 15:35:46 +03:00
- name: Run build
2023-04-14 15:33:53 +03:00
run: go build -ldflags "-s -w"