mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
example using if:
rather than semverator
This commit is contained in:
parent
89f8e4d391
commit
9d700f7ab6
|
@ -13,14 +13,18 @@ build:
|
|||
go.dev: ^1.18
|
||||
gnu.org/patch: '*'
|
||||
crates.io/semverator: ^0
|
||||
script: |
|
||||
if semverator satisfies '<3.25.0' {{ version }}; then
|
||||
script:
|
||||
# Add go.mod on older versions
|
||||
patch -p1 <props/patch-go-modules.diff
|
||||
fi
|
||||
- run: patch -p1 <props/patch-go-modules.diff
|
||||
if: <3.25
|
||||
|
||||
mkdir -p "{{ prefix }}"/bin
|
||||
go build -v -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/go-bindata ./go-bindata
|
||||
- mkdir -p {{prefix}}/bin
|
||||
|
||||
- go build
|
||||
-v
|
||||
-ldflags="$LDFLAGS"
|
||||
-o {{prefix}}/bin/go-bindata
|
||||
./go-bindata
|
||||
|
||||
env:
|
||||
LDFLAGS:
|
||||
|
|
Loading…
Reference in a new issue