From 245c7287620c1adc8a4f603d6a4e20a028580381 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 24 Dec 2021 08:33:38 +1100 Subject: [PATCH] Use gotip for CI build --- .github/workflows/go.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a575eb35..f8884c2c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -9,16 +9,26 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: [ '1.16', '1.17' ] + go-version: [ 'tip' ] fail-fast: false steps: - uses: actions/checkout@v2 - name: Set up Go + if: matrix.go-version != 'tip' uses: actions/setup-go@v2 with: go-version: ${{ matrix.go-version }} + - name: Install gotip + if: matrix.go-version == 'tip' + run: | + git clone --depth=1 https://go.googlesource.com/go "$HOME/gotip" + cd "$HOME/gotip/src" + ./make.bash + echo "GOROOT=$HOME/gotip" >> "$GITHUB_ENV" + echo "$HOME/gotip/bin:$PATH" >> "$GITHUB_PATH" + - name: Test run: go test -race -count 2 ./...