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

This commit is contained in:
2026-07-04 10:28:53 +08:00
parent 9f17517c20
commit 7f6ca27e19
2 changed files with 18 additions and 2 deletions
+9 -1
View File
@@ -111,7 +111,15 @@ jobs:
- name: Install Go 1.23
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
echo "/toolcache/go/bin" >> $GITHUB_PATH
echo "GOROOT=/toolcache/go" >> $GITHUB_ENV