mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
aa7c57f3fe
commit
e0151d6c08
1 changed files with 8 additions and 4 deletions
|
@ -10,11 +10,11 @@ versions:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
go.dev: '*'
|
go.dev: ^1.22.2
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
COMMIT_SHA: "$(git describe --always --abbrev=8 --dirty)"
|
COMMIT_SHA: '$(git describe --always --abbrev=8 --dirty)'
|
||||||
VERSION_DATE: "$(date -u +%FT%TZ)"
|
VERSION_DATE: '$(date -u +%FT%TZ)'
|
||||||
LDFLAGS:
|
LDFLAGS:
|
||||||
- -s
|
- -s
|
||||||
- -w
|
- -w
|
||||||
|
@ -23,7 +23,11 @@ build:
|
||||||
linux:
|
linux:
|
||||||
LDFLAGS:
|
LDFLAGS:
|
||||||
- -buildmode=pie
|
- -buildmode=pie
|
||||||
script: go build -v -trimpath -ldflags="${LDFLAGS}" -o {{prefix}}/bin/sftpgo
|
script:
|
||||||
|
# fails to find sqlite3.Error
|
||||||
|
- run: TAGS="-tags nosqlite"
|
||||||
|
if: 2.6.0
|
||||||
|
- go build -v $TAGS -trimpath -ldflags="${LDFLAGS}" -o {{prefix}}/bin/sftpgo
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/sftpgo
|
- bin/sftpgo
|
||||||
|
|
Loading…
Reference in a new issue