Skip to content

Commit

Permalink
Revert "Revert "Change ccache to sccache"" (#5623)
Browse files Browse the repository at this point in the history
* Revert "Revert "Change ccache to sccache" (#5613)"

This reverts commit 08a5d90.

* Update pull_request.yml
  • Loading branch information
Shinji-IkariG authored Jul 7, 2023
1 parent 44929a9 commit c1b433d
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ jobs:
- os: centos7
compiler: clang-10
env:
CCACHE_DIR: /tmp/ccache/nebula/${{ matrix.os }}-${{ matrix.compiler }}
CCACHE_MAXSIZE: 8G
# SCCACHE_CACHE_SIZE: "10G"
SCCACHE_ENDPOINT: "https://minio.vesoft-inc.com"
SCCACHE_BUCKET: "ci-sccache"
SCCACHE_S3_KEY_PREFIX: ${{ github.repository }}
AWS_ACCESS_KEY_ID: ${{ secrets.MINIO_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.MINIO_SECRET }}
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:
Expand All @@ -89,6 +91,8 @@ jobs:
- uses: webiny/action-post-run@3.0.0
with:
run: sh -c "find . -mindepth 1 -delete"
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
- uses: actions/checkout@v3
- name: Prepare environment
id: prepare
Expand All @@ -104,6 +108,7 @@ 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 \
Expand All @@ -115,6 +120,7 @@ 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 \
Expand All @@ -129,6 +135,7 @@ 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 \
Expand All @@ -147,23 +154,17 @@ 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/
Expand Down

0 comments on commit c1b433d

Please sign in to comment.