mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
example using if:
rather than semverator
This commit is contained in:
parent
89f8e4d391
commit
9d700f7ab6
1 changed files with 11 additions and 7 deletions
|
@ -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
|
||||
# Add go.mod on older versions
|
||||
patch -p1 <props/patch-go-modules.diff
|
||||
fi
|
||||
script:
|
||||
# Add go.mod on older versions
|
||||
- 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