fix(elvsh)

closes #5177
This commit is contained in:
Jacob Heider 2024-02-11 13:20:36 -05:00
parent df74eca47a
commit 22850bab1e
No known key found for this signature in database
GPG key ID: 59D15ADC7DCD39BB

View file

@ -9,10 +9,9 @@ versions:
build:
dependencies:
go.dev: ^1.19
script: |
mkdir -p "{{ prefix }}"/bin
go build -ldflags="$LDFLAGS" ./cmd/elvish
mv elvish "{{ prefix }}"/bin
linux/aarch64:
gnu.org/binutils: ^2 # wants ld.gold
script: go build -ldflags="$LDFLAGS" -o "{{ prefix }}/bin/elvish" ./cmd/elvish
env:
LDFLAGS:
- -s
@ -23,10 +22,9 @@ build:
LDFLAGS:
- -buildmode=pie
provides:
- bin/elvish
test: |
test "$(elvish --version)" = "{{version}}"
test "$(elvish -c 'echo hello')" = "hello"
test:
- test "$(elvish --version)" = "{{version}}"
- test "$(elvish -c 'echo hello')" = "hello"