Modified action
Some checks failed
Build the API (1.18)
Build the API (1.19)
Build the API (1.20)

This commit is contained in:
Profitroll 2023-04-14 14:33:53 +02:00
parent 95e9e23f0d
commit c6a1fc61b1

View File

@ -1,14 +1,19 @@
name: Build the API
on: [push]
env:
GIN_MODE: release
jobs:
build:
needs: [test]
name: Build the API
strategy:
matrix:
go: [ '1.18', '1.19', '1.20' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
go-version: ${{ matrix.go }}
check-latest: true
- run: go build -ldflags "-s -w"
cache: true
- name: Run Build
run: go build -ldflags "-s -w"