Skip to content

Commit

Permalink
Added sccache to windows ci build and Ninja back to linux
Browse files Browse the repository at this point in the history
  • Loading branch information
faressc committed Apr 1, 2024
1 parent 055319a commit 58f174c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,14 @@ jobs:
- name: cmake configure
shell: bash
run: |
if [ "${{ matrix.name }}" == "macOS-x86_64" ]; then
if [ "${{ matrix.name }}" == "Linux-x86_64" ]; then
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DNNITEMPLATE_WITH_INSTALL=ON
elif [ "${{ matrix.name }}" == "macOS-x86_64" ]; then
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_OSX_ARCHITECTURES="x86_64" -DNNITEMPLATE_WITH_INSTALL=ON
elif [ "${{ matrix.name }}" == "macOS-arm64" ]; then
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_OSX_ARCHITECTURES="arm64" -DNNITEMPLATE_WITH_INSTALL=ON
else
cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DNNITEMPLATE_WITH_INSTALL=ON
cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DNNITEMPLATE_WITH_INSTALL=ON
fi;
# Build the project
Expand Down

0 comments on commit 58f174c

Please sign in to comment.