Update .forgejo/workflows/release.yaml
Some checks failed
Run Integration Tests / test (push) Failing after 36s
Some checks failed
Run Integration Tests / test (push) Failing after 36s
This commit is contained in:
parent
fe0d80007f
commit
9160955cfa
1 changed files with 18 additions and 2 deletions
|
@ -11,9 +11,25 @@ jobs:
|
|||
- name: Checkout source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Check Go version
|
||||
- name: Install latest Go
|
||||
run: |
|
||||
go version
|
||||
echo "📡 Fetching latest Go version string from go.dev..."
|
||||
GO_FULL=$(curl -sSL https://go.dev/VERSION?m=text | head -n1)
|
||||
echo "🔍 Cleaned version: $GO_FULL"
|
||||
|
||||
ARCHIVE="${GO_FULL}.linux-amd64.tar.gz"
|
||||
curl -LO "https://go.dev/dl/${ARCHIVE}"
|
||||
|
||||
mkdir -p "$HOME/.local/go"
|
||||
tar -C "$HOME/.local/go" --strip-components=1 -xzf "$ARCHIVE"
|
||||
|
||||
echo "$HOME/.local/go/bin" >> $GITHUB_PATH
|
||||
echo "✅ Go installed locally to $HOME/.local/go"
|
||||
|
||||
"$HOME/.local/go/bin/go" install ./cmd/qgato
|
||||
|
||||
- name: Check Go version
|
||||
run: go version
|
||||
|
||||
- name: Extract version from version.txt
|
||||
id: version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue