From 77a2339767e7e34975bc665a6def48bbf7a9dc42 Mon Sep 17 00:00:00 2001 From: Denis Zhdanov Date: Tue, 20 Aug 2024 17:28:19 +0200 Subject: [PATCH] Fix go-tip installation in CI --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc0a4677..9826c033 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,13 +17,13 @@ jobs: with: go-version: ${{ matrix.go-version }} - name: Set up Go tip - if: matrix.go-version == 'tip' + if: matrix.go == 'tip' run: | - curl -sL https://storage.googleapis.com/go-build-snap/go/linux-amd64/$(git ls-remote https://github.com/golang/go.git HEAD | awk '{print $1;}').tar.gz -o gotip.tar.gz - ls -lah gotip.tar.gz - mkdir -p ~/sdk/gotip - tar -C ~/sdk/gotip -xzf gotip.tar.gz - ~/sdk/gotip/bin/go version + curl -o go.tar.gz -L \ + https://github.com/AlekSi/golang-tip/releases/download/tip/master.linux-amd64.tar.gz + sudo tar -C /usr/local -xzf go.tar.gz + sudo ln -s /usr/local/go/bin/* /usr/local/bin/ + /usr/local/bin/go version echo "PATH=$HOME/go/bin:$HOME/sdk/gotip/bin/:$PATH" >> $GITHUB_ENV - name: install cairo run: sudo apt-get install libcairo2-dev -y