mirror of
https://github.com/gulrak/filesystem.git
synced 2026-01-01 03:12:08 +08:00
Update build_cmake.yml to handle GCC 5-6 with older CMake versions
This commit is contained in:
parent
3634e15e6a
commit
9ef4be2a96
13
.github/workflows/build_cmake.yml
vendored
13
.github/workflows/build_cmake.yml
vendored
@ -238,7 +238,18 @@ jobs:
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=Release
|
||||
# GCC 5-6 have CMake 3.0.2 which doesn't support -S/-B flags (added in 3.13)
|
||||
if [ "${{ matrix.compiler }}" = "gcc" ]; then
|
||||
if [ "${{ matrix.version }}" = "5" ] || [ "${{ matrix.version }}" = "6" ]; then
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release
|
||||
else
|
||||
cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=Release
|
||||
fi
|
||||
else
|
||||
cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=Release
|
||||
fi
|
||||
|
||||
- name: Build
|
||||
run: cmake --build build
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user