Use gotip for CI build
This commit is contained in:
parent
935dc3da0a
commit
245c728762
|
@ -9,16 +9,26 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go-version: [ '1.16', '1.17' ]
|
go-version: [ 'tip' ]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
|
if: matrix.go-version != 'tip'
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
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
|
- name: Test
|
||||||
run: go test -race -count 2 ./...
|
run: go test -race -count 2 ./...
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue