API/.gitea/workflows/default.yaml
profitroll 337d7b6a55
Some checks failed
Build the API (1.17)
Build the API (1.18)
Build the API (1.19)
Build the API (1.20)
Added workaround for zstd
2023-04-14 14:56:44 +02:00

21 lines
497 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: Workaround for zstd
run: apt update && apt install zstd
- 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"