Skip to content

Commit cce6802

Browse files
author
wuxianrong
committed
fix ci
1 parent 6dbb59f commit cce6802

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/pika.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,18 @@ jobs:
3636
sudo apt-get update
3737
sudo apt-get install -y autoconf libprotobuf-dev protobuf-compiler clang-tidy
3838
39+
- name: Check CMake version
40+
run: cmake --version
41+
3942
- name: Configure CMake
4043
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
4144
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
42-
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DUSE_PIKA_TOOLS=ON -DCMAKE_CXX_FLAGS_DEBUG=-fsanitize=address -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
45+
run: cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DUSE_PIKA_TOOLS=ON -DCMAKE_CXX_FLAGS_DEBUG=-fsanitize=address -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
4346

4447
- name: Build
4548
# Build your program with the given configuration
4649
run: cmake --build build --config ${{ env.BUILD_TYPE }}
47-
50+
4851
- name: Cleanup
4952
run: |
5053
rm -rf ./deps

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ ExternalProject_Add(gflags
190190
1
191191
BUILD_ALWAYS
192192
1
193-
CMAKE_ARGS
193+
CMAKE_ARGS
194194
-DCMAKE_INSTALL_PREFIX=${STAGED_INSTALL_PREFIX}
195195
-DCMAKE_BUILD_TYPE=${LIB_BUILD_TYPE}
196196
-DGFLAGS_NAMESPACE=gflags

0 commit comments

Comments
 (0)