ci: fix go-1.13 installation

For some reason the official way of getting older Go versions does not
work, this patch makes the CI downgrade the package on a package manager
level

Signed-off-by: Moritz Poldrack <git@moritz.sh>
Tested-by: builds.sr.ht <builds@sr.ht>
Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Moritz Poldrack 2022-06-28 11:52:39 +02:00 committed by Robin Jarry
parent 26531fa932
commit 506f8f165c

View file

@ -1,4 +1,3 @@
---
image: alpine/edge image: alpine/edge
packages: packages:
- go - go
@ -25,7 +24,8 @@ tasks:
cd aerc cd aerc
go test ./... go test ./...
- ancient-go-version: | - ancient-go-version: |
go install golang.org/dl/go1.13@latest curl -O https://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/go-1.13.13-r0.apk
~/go/bin/go1.13 download sudo apk add ./go-1.13.13-r0.apk
cd aerc cd aerc
make GO=~/go/bin/go1.13 make clean
make