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
|
go.dev: ^1.18
|
||||||
gnu.org/patch: '*'
|
gnu.org/patch: '*'
|
||||||
crates.io/semverator: ^0
|
crates.io/semverator: ^0
|
||||||
script: |
|
script:
|
||||||
if semverator satisfies '<3.25.0' {{ version }}; then
|
|
||||||
# Add go.mod on older versions
|
# Add go.mod on older versions
|
||||||
patch -p1 <props/patch-go-modules.diff
|
- run: patch -p1 <props/patch-go-modules.diff
|
||||||
fi
|
if: <3.25
|
||||||
|
|
||||||
mkdir -p "{{ prefix }}"/bin
|
- mkdir -p {{prefix}}/bin
|
||||||
go build -v -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/go-bindata ./go-bindata
|
|
||||||
|
- go build
|
||||||
|
-v
|
||||||
|
-ldflags="$LDFLAGS"
|
||||||
|
-o {{prefix}}/bin/go-bindata
|
||||||
|
./go-bindata
|
||||||
|
|
||||||
env:
|
env:
|
||||||
LDFLAGS:
|
LDFLAGS:
|
||||||
|
|
Loading…
Reference in a new issue