mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
b7413e1349
commit
35c645e537
1 changed files with 8 additions and 1 deletions
|
@ -12,6 +12,8 @@ provides:
|
||||||
runtime:
|
runtime:
|
||||||
env:
|
env:
|
||||||
ENCORE_RUNTIME_PATH: ${{prefix}}/runtime
|
ENCORE_RUNTIME_PATH: ${{prefix}}/runtime
|
||||||
|
# https://github.com/encoredev/encore/pull/894
|
||||||
|
ENCORE_RUNTIMES_PATH: ${{prefix}}/runtimes
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
encore.dev/go: ^1.21
|
encore.dev/go: ^1.21
|
||||||
|
@ -21,7 +23,12 @@ build:
|
||||||
- go mod download
|
- go mod download
|
||||||
- go build $ARGS -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/encore ./cli/cmd/encore
|
- go build $ARGS -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/encore ./cli/cmd/encore
|
||||||
- go build $ARGS -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/git-remote-encore ./cli/cmd/git-remote-encore
|
- go build $ARGS -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/git-remote-encore ./cli/cmd/git-remote-encore
|
||||||
- cp -a runtime {{prefix}}
|
- run: cp -a runtime "{{prefix}}"
|
||||||
|
if: <1.28.0
|
||||||
|
- run: |
|
||||||
|
cp -a runtimes "{{prefix}}"
|
||||||
|
ln -s runtimes/go "{{prefix}}/runtime"
|
||||||
|
if: '>=1.28.0'
|
||||||
env:
|
env:
|
||||||
GO111MODULE: on
|
GO111MODULE: on
|
||||||
ARGS:
|
ARGS:
|
||||||
|
|
Loading…
Reference in a new issue