Skip to content

Commit

Permalink
build deps use ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
hientominh committed Jun 3, 2024
1 parent 25a3d48 commit 1e6490a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/quality-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
run-e2e: false
s3-key-prefix: "windows"
sccache-conf-path: 'C:\sccache.conf'
ccache-dir: 'C:\ccache'
permissions:
contents: write
steps:
Expand All @@ -43,12 +44,19 @@ jobs:
- name: Install choco on Windows
if: runner.os == 'Windows'
run: |
choco install make pkgconfiglite -y
choco install make pkgconfiglite ccache -y
- name: create ccache folder
continue-on-error: true
run: |
mkdir -p ${{ matrix.ccache-dir }}
- name: Build Dependencies
working-directory: cpp
run: |
make build-deps
env:
CCACHE_DIR: ${{ matrix.ccache-dir }}

- name: Build
working-directory: cpp
Expand Down
2 changes: 1 addition & 1 deletion cpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ all:
# Build the Cortex engine
build-deps:
ifeq ($(OS),Windows_NT)
@powershell -Command "& 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\Launch-VsDevShell.ps1' -Arch amd64; cd tensorrt_llm/nitro; cmake -S ./nitro_deps -B ./build_deps/nitro_deps; cmake --build ./build_deps/nitro_deps --config Release -j4;"
@powershell -Command "& 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\Launch-VsDevShell.ps1' -Arch amd64; cd tensorrt_llm/nitro; cmake -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -S ./nitro_deps -B ./build_deps/nitro_deps; cmake --build ./build_deps/nitro_deps --config Release -j4;"
else
@./install_deps.sh;
@mkdir -p build && cd build; \
Expand Down

0 comments on commit 1e6490a

Please sign in to comment.