Skip to content

Commit

Permalink
github workflow changes
Browse files Browse the repository at this point in the history
  • Loading branch information
huangminghuang committed Sep 4, 2024
1 parent f4aa05c commit 70b101f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: actions/cache@v4
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/third-party.cmake') }}

# - name: install ninja
# sudo apt-get install ninja-build
Expand All @@ -46,7 +46,7 @@ jobs:

- name: build and install library
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
sudo cmake --build build --target install
- name: configure
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
- uses: actions/cache@v4
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/third-party.cmake') }}

- name: ccache
uses: hendrikmuhs/[email protected]
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,24 @@ jobs:
- uses: actions/cache@v4
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/third-party.cmake') }}

- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.workflow }}

- name: configure
shell: bash
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
- name: build
shell: bash
run: cmake --build build --config Release -j4

- name: test
shell: bash
run: |
cd build
ctest --build-config Release --output-on-failure

0 comments on commit 70b101f

Please sign in to comment.