mirror of https://github.com/milvus-io/milvus.git
[skip e2e]Add go mod cache & 3rd party cache (#15678)
Signed-off-by: Jenny Li <jing.li@zilliz.com>pull/15687/head
parent
782f350da5
commit
ff875b03cd
|
@ -48,6 +48,20 @@ jobs:
|
||||||
path: .docker/amd64-ubuntu18.04-ccache
|
path: .docker/amd64-ubuntu18.04-ccache
|
||||||
key: ubuntu18.04-ccache-${{ hashFiles('internal/core/**') }}
|
key: ubuntu18.04-ccache-${{ hashFiles('internal/core/**') }}
|
||||||
restore-keys: ubuntu18.04-ccache-
|
restore-keys: ubuntu18.04-ccache-
|
||||||
|
- name: Cache Third Party
|
||||||
|
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: .docker/thirdparty
|
||||||
|
key: ubuntu18.04-thirdparty-${{ hashFiles('internal/core/**') }}
|
||||||
|
restore-keys: ubuntu18.04-thirdparty-
|
||||||
|
- name: Mac Cache Third Party
|
||||||
|
if: ${{ matrix.os == 'macos-11' }}
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: /tmp/thirdparty
|
||||||
|
key: macos-11-thirdparty-${{ hashFiles('internal/core/**') }}
|
||||||
|
restore-keys: macos-11-thirdparty-
|
||||||
- name: Mac Cache CCache Volumes
|
- name: Mac Cache CCache Volumes
|
||||||
if: ${{ matrix.os == 'macos-11' }}
|
if: ${{ matrix.os == 'macos-11' }}
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
|
@ -62,6 +76,18 @@ jobs:
|
||||||
path: .docker/amd64-ubuntu18.04-go-mod
|
path: .docker/amd64-ubuntu18.04-go-mod
|
||||||
key: ubuntu18.04-go-mod-${{ hashFiles('**/go.sum') }}
|
key: ubuntu18.04-go-mod-${{ hashFiles('**/go.sum') }}
|
||||||
restore-keys: ubuntu18.04-go-mod-
|
restore-keys: ubuntu18.04-go-mod-
|
||||||
|
- name: Setup Go environment
|
||||||
|
uses: actions/setup-go@v2.2.0
|
||||||
|
if: ${{ matrix.os == 'macos-11' }}
|
||||||
|
with:
|
||||||
|
go-version: '^1.17.1'
|
||||||
|
- name: Mac Cache Go Mod Volumes
|
||||||
|
if: ${{ matrix.os == 'macos-11' }}
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ~/go/pkg/mod
|
||||||
|
key: macos-11-go-mod-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: macos-11-go-mod-
|
||||||
- name: Code Check
|
- name: Code Check
|
||||||
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
if: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
env:
|
env:
|
||||||
|
@ -76,13 +102,10 @@ jobs:
|
||||||
CCACHE_COMPRESS: 1
|
CCACHE_COMPRESS: 1
|
||||||
CCACHE_COMPRESSLEVEL: 5
|
CCACHE_COMPRESSLEVEL: 5
|
||||||
CCACHE_MAXSIZE: 2G
|
CCACHE_MAXSIZE: 2G
|
||||||
|
CUSTOM_THIRDPARTY_PATH: /tmp/thirdparty
|
||||||
run: |
|
run: |
|
||||||
if [[ ! -d "/var/tmp/ccache" ]];then
|
if [[ ! -d "/var/tmp/ccache" ]];then
|
||||||
mkdir -p /var/tmp/ccache
|
mkdir -p /var/tmp/ccache
|
||||||
fi
|
fi
|
||||||
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
|
|
||||||
source ~/.gvm/scripts/gvm
|
|
||||||
gvm install go1.17.2
|
|
||||||
gvm use go1.17.2
|
|
||||||
brew install boost libomp ninja tbb ccache
|
brew install boost libomp ninja tbb ccache
|
||||||
make check-proto-product && make verifiers
|
make check-proto-product && make verifiers
|
Loading…
Reference in New Issue