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