Modified action
Build the API (1.18) Details
Build the API (1.19) Details
Build the API (1.20) Details

This commit is contained in:
Profitroll 2023-04-14 14:33:53 +02:00
parent 95e9e23f0d
commit c6a1fc61b1
1 changed files with 10 additions and 5 deletions

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"