Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
490fae7d5b | ||
![]() |
ca9d8af13f | ||
![]() |
2537d5f1c8 |
@@ -30,6 +30,9 @@ jobs:
|
|||||||
ext: ""
|
ext: ""
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install zip
|
||||||
|
run: sudo apt -get update && sudo apt-get install -y zip
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -43,8 +46,8 @@ jobs:
|
|||||||
|
|
||||||
if [ ! -x "$GOROOT/bin/go" ]; then
|
if [ ! -x "$GOROOT/bin/go" ]; then
|
||||||
echo "Go not found in $GOROOT, downloading latest stable..."
|
echo "Go not found in $GOROOT, downloading latest stable..."
|
||||||
|
|
||||||
GO_VERSION=$(curl -s https://go.dev/VERSION?m=text | tr -d '\n\r')
|
GO_VERSION=$(curl -s https://go.dev/VERSION?m=text | head -n1)
|
||||||
echo "Latest version is $GO_VERSION"
|
echo "Latest version is $GO_VERSION"
|
||||||
|
|
||||||
mkdir -p /data/go
|
mkdir -p /data/go
|
||||||
@@ -56,16 +59,6 @@ jobs:
|
|||||||
|
|
||||||
go version
|
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
|
- name: Download Go dependencies
|
||||||
run: |
|
run: |
|
||||||
export GOROOT=/data/go/go
|
export GOROOT=/data/go/go
|
||||||
|
Reference in New Issue
Block a user