Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
0e8864d4da | ||
![]() |
490fae7d5b | ||
![]() |
ca9d8af13f | ||
![]() |
2537d5f1c8 | ||
![]() |
79ad631494 |
@@ -30,6 +30,10 @@ jobs:
|
||||
ext: ""
|
||||
|
||||
steps:
|
||||
- name: Install zip
|
||||
run: |
|
||||
apt-get update && apt-get install -y zip
|
||||
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@@ -44,7 +48,7 @@ jobs:
|
||||
if [ ! -x "$GOROOT/bin/go" ]; then
|
||||
echo "Go not found in $GOROOT, downloading latest stable..."
|
||||
|
||||
GO_VERSION=$(curl -s https://go.dev/VERSION?m=text)
|
||||
GO_VERSION=$(curl -s https://go.dev/VERSION?m=text | head -n1)
|
||||
echo "Latest version is $GO_VERSION"
|
||||
|
||||
mkdir -p /data/go
|
||||
@@ -56,16 +60,6 @@ jobs:
|
||||
|
||||
go version
|
||||
|
||||
- name: Cache Go build and module cache in /data
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
/data/gocache
|
||||
/data/gomodcache
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
|
||||
- name: Download Go dependencies
|
||||
run: |
|
||||
export GOROOT=/data/go/go
|
||||
|
Reference in New Issue
Block a user