Fix: Install curl and create toolcache directory before downloading Go
Build Debug / Build Android Debug APK (push) Failing after 2m45s
Build UUVPN / Build Android APK (push) Failing after 1m21s
Build UUVPN / Cleanup old artifacts (push) Failing after 0s
Build Debug / Build iOS Debug App (push) Has been cancelled
Build UUVPN / Build iOS IPA (push) Has been cancelled
Build UUVPN / Create GitHub Release (push) Has been cancelled
Build UUVPN / Upload to TestFlight (push) Has been cancelled
Build UUVPN / Send Notification (push) Has been cancelled
Build Debug / Build Android Debug APK (push) Failing after 2m45s
Build UUVPN / Build Android APK (push) Failing after 1m21s
Build UUVPN / Cleanup old artifacts (push) Failing after 0s
Build Debug / Build iOS Debug App (push) Has been cancelled
Build UUVPN / Build iOS IPA (push) Has been cancelled
Build UUVPN / Create GitHub Release (push) Has been cancelled
Build UUVPN / Upload to TestFlight (push) Has been cancelled
Build UUVPN / Send Notification (push) Has been cancelled
This commit is contained in:
@@ -77,7 +77,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Go 1.23
|
- name: Install Go 1.23
|
||||||
run: |
|
run: |
|
||||||
# Always download Go 1.23 directly to ensure correct version
|
# Create toolcache directory if not exists
|
||||||
|
mkdir -p /toolcache
|
||||||
|
# Install curl if not available (Alpine uses apk)
|
||||||
|
if ! command -v curl &> /dev/null; then
|
||||||
|
if command -v apk &> /dev/null; then
|
||||||
|
apk add --no-cache curl
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# Download Go 1.23 directly to ensure correct version
|
||||||
curl -sL https://go.dev/dl/go1.23.0.linux-amd64.tar.gz | tar xz -C /toolcache
|
curl -sL https://go.dev/dl/go1.23.0.linux-amd64.tar.gz | tar xz -C /toolcache
|
||||||
echo "/toolcache/go/bin" >> $GITHUB_PATH
|
echo "/toolcache/go/bin" >> $GITHUB_PATH
|
||||||
echo "GOROOT=/toolcache/go" >> $GITHUB_ENV
|
echo "GOROOT=/toolcache/go" >> $GITHUB_ENV
|
||||||
|
|||||||
@@ -111,7 +111,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Go 1.23
|
- name: Install Go 1.23
|
||||||
run: |
|
run: |
|
||||||
# Always download Go 1.23 directly to ensure correct version
|
# Create toolcache directory if not exists
|
||||||
|
mkdir -p /toolcache
|
||||||
|
# Install curl if not available (Alpine uses apk)
|
||||||
|
if ! command -v curl &> /dev/null; then
|
||||||
|
if command -v apk &> /dev/null; then
|
||||||
|
apk add --no-cache curl
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# Download Go 1.23 directly to ensure correct version
|
||||||
curl -sL https://go.dev/dl/go1.23.0.linux-amd64.tar.gz | tar xz -C /toolcache
|
curl -sL https://go.dev/dl/go1.23.0.linux-amd64.tar.gz | tar xz -C /toolcache
|
||||||
echo "/toolcache/go/bin" >> $GITHUB_PATH
|
echo "/toolcache/go/bin" >> $GITHUB_PATH
|
||||||
echo "GOROOT=/toolcache/go" >> $GITHUB_ENV
|
echo "GOROOT=/toolcache/go" >> $GITHUB_ENV
|
||||||
|
|||||||
Reference in New Issue
Block a user