mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
parent
bdc6051926
commit
532a55ff6e
1 changed files with 7 additions and 6 deletions
|
@ -11,10 +11,9 @@ provides:
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
go.dev: ^1.19
|
go.dev: ^1.19
|
||||||
script: |
|
script:
|
||||||
go mod download
|
- go mod download
|
||||||
mkdir -p "{{ prefix }}"/bin
|
- go build -v -trimpath -ldflags="$LDFLAGS" -o $BUILDLOC .
|
||||||
go build -v -trimpath -ldflags="$LDFLAGS" -o $BUILDLOC .
|
|
||||||
env:
|
env:
|
||||||
GOPROXY: https://proxy.golang.org,direct
|
GOPROXY: https://proxy.golang.org,direct
|
||||||
GOSUMDB: sum.golang.org
|
GOSUMDB: sum.golang.org
|
||||||
|
@ -29,11 +28,13 @@ build:
|
||||||
# or segmentation fault
|
# or segmentation fault
|
||||||
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||||||
LDFLAGS:
|
LDFLAGS:
|
||||||
- -buildmode=pie
|
- -buildmode=pie
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script:
|
script:
|
||||||
- run: test "$(git-town version)" = "Git Town {{version}} ()"
|
- run: test "$(git-town version)" = "Git Town {{version}} ()"
|
||||||
if: <10
|
if: <10
|
||||||
- run: test "$(git-town --version)" = "Git Town {{version}} ()"
|
- run: test "$(git-town --version)" = "Git Town {{version}} ()"
|
||||||
if: '>=10'
|
if: '>=10<12.0.1'
|
||||||
|
- run: test "$(git-town --version)" = "Git Town {{version}}"
|
||||||
|
if: '>=12.0.1'
|
||||||
|
|
Loading…
Reference in a new issue