Modified action
This commit is contained in:
parent
95e9e23f0d
commit
c6a1fc61b1
@ -1,14 +1,19 @@
|
|||||||
name: Build the API
|
|
||||||
on: [push]
|
on: [push]
|
||||||
env:
|
env:
|
||||||
GIN_MODE: release
|
GIN_MODE: release
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
needs: [test]
|
name: Build the API
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go: [ '1.18', '1.19', '1.20' ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-go@v3
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: "1.20"
|
go-version: ${{ matrix.go }}
|
||||||
check-latest: true
|
check-latest: true
|
||||||
- run: go build -ldflags "-s -w"
|
cache: true
|
||||||
|
- name: Run Build
|
||||||
|
run: go build -ldflags "-s -w"
|
Loading…
Reference in New Issue
Block a user