Skip to content

Commit 42a0f86

Browse files
committed
ajout de configure pour linux et windows différents
1 parent 2e276da commit 42a0f86

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/cmake-multi-platform.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,19 @@ jobs:
8080
run: |
8181
.\vcpkg\vcpkg install fltk
8282
83-
- name: Configure CMake
83+
- name: Configure CMake (Linux)
84+
if: runner.os == 'Linux'
85+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
86+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
87+
run: >
88+
cmake -B ${{ steps.strings.outputs.build-output-dir }}
89+
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
90+
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
91+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
92+
-S ${{ github.workspace }}
93+
94+
- name: Configure CMake (Windows)
95+
if: runner.os == 'Windows'
8496
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
8597
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
8698
run: >

0 commit comments

Comments
 (0)