-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Change ccache to sccache" (#5613)
- Loading branch information
1 parent
56d42e8
commit 08a5d90
Showing
1 changed file
with
10 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,14 +65,12 @@ jobs: | |
- os: centos7 | ||
compiler: clang-10 | ||
env: | ||
# SCCACHE_CACHE_SIZE: "10G" | ||
SCCACHE_ENDPOINT: "https://mimio.vesoft-inc.com:9000" | ||
SCCACHE_BUCKET: "ci-sccache" | ||
SCCACHE_S3_KEY_PREFIX: ${{ github.repository }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.MINIO_KEY }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.MINIO_SECRET }} | ||
CCACHE_DIR: /tmp/ccache/nebula/${{ matrix.os }}-${{ matrix.compiler }} | ||
CCACHE_MAXSIZE: 8G | ||
container: | ||
image: vesoft/nebula-dev:${{ matrix.os }} | ||
volumes: | ||
- /tmp/ccache/nebula/${{ matrix.os }}-${{ matrix.compiler }}:/tmp/ccache/nebula/${{ matrix.os }}-${{ matrix.compiler }} | ||
options: --cap-add=SYS_PTRACE | ||
services: | ||
elasticsearch: | ||
|
@@ -91,8 +89,6 @@ jobs: | |
- uses: webiny/[email protected] | ||
with: | ||
run: sh -c "find . -mindepth 1 -delete" | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- uses: actions/checkout@v3 | ||
- name: Prepare environment | ||
id: prepare | ||
|
@@ -108,7 +104,6 @@ jobs: | |
centos7) | ||
# build with Release type | ||
cmake \ | ||
-DCOMPILER_LAUNCHER_OPTION=sccache \ | ||
-DCMAKE_CXX_COMPILER=$TOOLSET_GCC_DIR/bin/g++ \ | ||
-DCMAKE_C_COMPILER=$TOOLSET_GCC_DIR/bin/gcc \ | ||
-DNEBULA_USE_LINKER=mold \ | ||
|
@@ -120,7 +115,6 @@ jobs: | |
ubuntu2004) | ||
# build with Debug type | ||
cmake \ | ||
-DCOMPILER_LAUNCHER_OPTION=sccache \ | ||
-DCMAKE_CXX_COMPILER=$TOOLSET_GCC_DIR/bin/g++ \ | ||
-DCMAKE_C_COMPILER=$TOOLSET_GCC_DIR/bin/gcc \ | ||
-DNEBULA_USE_LINKER=mold \ | ||
|
@@ -135,7 +129,6 @@ jobs: | |
clang-*) | ||
# build with Sanitizer | ||
cmake \ | ||
-DCOMPILER_LAUNCHER_OPTION=sccache \ | ||
-DCMAKE_CXX_COMPILER=$TOOLSET_CLANG_DIR/bin/clang++ \ | ||
-DCMAKE_C_COMPILER=$TOOLSET_CLANG_DIR/bin/clang \ | ||
-DNEBULA_USE_LINKER=mold \ | ||
|
@@ -154,17 +147,23 @@ jobs: | |
case ${{ matrix.os }} in | ||
centos7) | ||
# build with Release type | ||
ccache -z | ||
ninja -j $(nproc) | ||
ccache -s | ||
;; | ||
ubuntu2004) | ||
# build with Debug type | ||
ccache -z | ||
ninja -j $(nproc) | ||
ccache -s | ||
;; | ||
esac | ||
;; | ||
clang-*) | ||
# build with Sanitizer | ||
ccache -z | ||
ninja -j $(nproc) | ||
ccache -s | ||
;; | ||
esac | ||
working-directory: build/ | ||
|