mirror of https://github.com/milvus-io/milvus.git
[skip e2e] Try to improve mac compile (#19992)
Signed-off-by: Jenny Li <jing.li@zilliz.com> Signed-off-by: Jenny Li <jing.li@zilliz.com>pull/19999/head
parent
308a30fc46
commit
e19e364c21
|
@ -39,11 +39,17 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: "Generate CCache Hash"
|
||||
env:
|
||||
CORE_HASH: ${{ hashFiles( 'internal/core/**/*.cpp', 'internal/core/**/*.cc', 'internal/core/**/*.c', 'internal/core/**/*.h', 'internal/core/**/*.hpp', 'internal/core/**/CMakeLists.txt') }}
|
||||
run: |
|
||||
echo "corehash=${CORE_HASH}" >> $GITHUB_ENV
|
||||
echo "Set CCache hash to ${CORE_HASH}"
|
||||
- name: Cache CCache Volumes
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .docker/amd64-ubuntu20.04-ccache
|
||||
key: ubuntu20.04-ccache-${{ hashFiles('internal/core/**') }}
|
||||
key: ubuntu20.04-ccache-${{ env.corehash }}
|
||||
restore-keys: ubuntu20.04-ccache-
|
||||
- name: Cache Third Party
|
||||
uses: actions/cache@v3
|
||||
|
@ -71,11 +77,17 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: "Generate CCache Hash"
|
||||
env:
|
||||
CORE_HASH: ${{ hashFiles( 'internal/core/**/*.cpp', 'internal/core/**/*.cc', 'internal/core/**/*.c', 'internal/core/**/*.h', 'internal/core/**/*.hpp', 'internal/core/**/CMakeLists.txt') }}
|
||||
run: |
|
||||
echo "corehash=${CORE_HASH}" >> $GITHUB_ENV
|
||||
echo "Set CCache hash to ${CORE_HASH}"
|
||||
- name: Cache CCache Volumes
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: .docker/amd64-centos7-ccache
|
||||
key: centos7-ccache-${{ hashFiles('internal/core/**') }}
|
||||
key: centos7-ccache-${{ env.corehash }}
|
||||
restore-keys: centos7-ccache-
|
||||
- name: Cache Third Party
|
||||
uses: actions/cache@v3
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: Code Checker
|
||||
name: Mac Code Checker
|
||||
|
||||
# This workflow is triggered on pushes or pull request to the repository.
|
||||
on:
|
||||
|
@ -30,19 +30,31 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: "Generate CCache Hash"
|
||||
env:
|
||||
CORE_HASH: ${{ hashFiles( 'internal/core/**/*.cpp', 'internal/core/**/*.cc', 'internal/core/**/*.c', 'internal/core/**/*.h', 'internal/core/**/*.hpp', 'internal/core/**/CMakeLists.txt') }}
|
||||
run: |
|
||||
echo "corehash=${CORE_HASH}" >> $GITHUB_ENV
|
||||
echo "Set CCache hash to ${CORE_HASH}"
|
||||
- name: Mac Cache Third Party
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
/tmp/thirdparty
|
||||
cmake_build/3rdparty_download/download
|
||||
key: macos-thirdparty-${{ hashFiles('internal/core/thirdparty/**') }}
|
||||
restore-keys: macos-thirdparty-
|
||||
- name: Mac Cache Cmake Build
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
cmake_build/3rdparty_download/download
|
||||
key: macos-cmake-build-${{ env.corehash }}
|
||||
restore-keys: macos-cmake-build-
|
||||
- name: Mac Cache CCache Volumes
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: /var/tmp/ccache
|
||||
key: macos-ccache-${{ hashFiles('internal/core/**') }}
|
||||
key: macos-ccache-${{ env.corehash }}
|
||||
restore-keys: macos-ccache-
|
||||
- name: Setup Go environment
|
||||
uses: actions/setup-go@v2.2.0
|
||||
|
|
Loading…
Reference in New Issue