Commit bf5d59ac authored by Matt Joiner's avatar Matt Joiner
Browse files

Use go1.12 for CI instead of master

parent 8ca3ee85
......@@ -3,6 +3,7 @@ jobs:
build:
machine: true
environment:
GO_BRANCH: release-branch.go1.12
steps:
- run: echo $CIRCLE_WORKING_DIRECTORY
- run: echo $PWD
......@@ -14,23 +15,24 @@ jobs:
- run: go version
- run: |
cd /usr/local
sudo mkdir go.master
sudo chown `whoami` go.master
sudo mkdir go.local
sudo chown `whoami` go.local
- restore_cache:
key: go-root-
key: go-local-
- run: |
cd /usr/local
git clone git://github.com/golang/go go.master || true
cd go.master
git pull
git clone git://github.com/golang/go go.local || true
cd go.local
git fetch
git checkout "$GO_BRANCH"
[[ -x bin/go && `git rev-parse HEAD` == `cat anacrolix.built` ]] && exit
cd src
./make.bash || exit
git rev-parse HEAD > ../anacrolix.built
- save_cache:
paths: /usr/local/go.master
key: go-root-{{ checksum "/usr/local/go.master/anacrolix.built" }}
- run: echo 'export PATH="/usr/local/go.master/bin:$PATH"' >> $BASH_ENV
paths: /usr/local/go.local
key: go-local-{{ checksum "/usr/local/go.local/anacrolix.built" }}
- run: echo 'export PATH="/usr/local/go.local/bin:$PATH"' >> $BASH_ENV
- run: go version
- checkout
- restore_cache:
......@@ -50,4 +52,3 @@ jobs:
key: go-cache-{{ .Revision }}
paths:
- ~/.cache/go-build
when: always
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment