Skip to content

Commit d82f26c

Browse files
committed
🔨 Try and get windows compiling
1 parent e280a0f commit d82f26c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

+9-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ jobs:
7474
- name: Install Conan Dependencies
7575
run: |
7676
conan install . --build=missing -s build_type=${{ matrix.build_type }}
77+
if [ "${{ runner.os }}" == "Windows" ]; then
78+
dir generators
79+
else
80+
ls -la generators/
81+
fi
7782
7883
- name: Set Build Directory
7984
id: strings
@@ -94,15 +99,18 @@ jobs:
9499
run: |
95100
if [ "${{ runner.os }}" == "Windows" ]; then
96101
build_dir="${{ github.workspace }}\\build\\${{ matrix.build_type }}"
102+
toolchain_file="${{ github.workspace }}/generators/conan_toolchain.cmake"
97103
else
98104
build_dir="${{ github.workspace }}/build/${{ matrix.build_type }}"
105+
toolchain_file="${{ github.workspace }}/generators/conan_toolchain.cmake"
99106
fi
100107
101108
cmake --preset ${{ steps.strings.outputs.preset }} \
102109
-S . \
103110
-B "$build_dir" \
104111
-G Ninja \
105-
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
112+
-DCMAKE_TOOLCHAIN_FILE="$toolchain_file" \
113+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
106114
107115
- name: Build
108116
run: cmake --build ${{ steps.strings.outputs.build-output-dir }}

0 commit comments

Comments
 (0)