File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed
Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -29,24 +29,34 @@ jobs:
2929 steps :
3030 - uses : actions/checkout@v4
3131
32- - name : Install Dependencies
32+ - name : Install dependencies
33+ shell : bash
3334 run : |
3435 apt-get update
35- apt-get install -y --no-install-recommends curl git tar
36- curl -L https://github.com/Kitware/CMake/releases/download/v3.30.4/cmake-3.30.4-linux-x86_64.tar.gz \
37- -o cmake.tar.gz
38- mkdir -p $HOME/cmake
39- tar -xzf cmake.tar.gz --strip-components=1 -C $HOME/cmake
40- echo "$HOME/cmake/bin" >> $GITHUB_PATH
36+ apt-get install -y --no-install-recommends ca-certificates gnupg lsb-release wget
37+
38+ wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc | gpg --dearmor -o /usr/share/keyrings/kitware-archive-keyring.gpg
39+ echo "deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main" > /etc/apt/sources.list.d/kitware.list
40+
41+ apt-get update
42+ apt-get install -y --no-install-recommends cmake git
4143
4244 - name : Configure CMake
45+ shell : bash
4346 run : |
47+ if [[ "${{ matrix.toolchain.name }}" == clang* ]]; then
48+ STDLIB_FLAGS="-DCMAKE_CXX_FLAGS=-stdlib=libc++ -DCMAKE_EXE_LINKER_FLAGS=-stdlib=libc++"
49+ else
50+ STDLIB_FLAGS=""
51+ fi
52+
4453 cmake -B build \
4554 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
4655 -DCMAKE_C_COMPILER=${{ matrix.toolchain.c_compiler }} \
4756 -DCMAKE_CXX_COMPILER=${{ matrix.toolchain.cxx_compiler }} \
4857 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
4958 -DSIMPLY_INSTALL_PRE_COMMIT_HOOKS=OFF \
59+ ${STDLIB_FLAGS} \
5060 -S .
5161
5262 - name : Build
You can’t perform that action at this time.
0 commit comments