Skip to content

Commit

Permalink
🔨 Another CMake github actions attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
SeedyROM committed Nov 30, 2024
1 parent 09196af commit ee5f847
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,10 @@ jobs:
restore-keys: |
${{ runner.os }}-conan-
- name: Install Conan Dependencies (Linux)
if: runner.os == 'Linux'
- name: Install Conan Dependencies
run: |
conan install . --build=missing -s build_type=${{ matrix.build_type }}
- name: Install Conan Dependencies (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
conan install . --build=missing -s build_type=${{ matrix.build_type }} -c tools.cmake.cmake_layout:build_folder_vars=['generators'] -c tools.cmake.cmaketoolchain:generator=Ninja
- name: Set Build Directory
id: strings
shell: bash
Expand All @@ -100,16 +93,14 @@ jobs:
run: |
if [ "${{ runner.os }}" == "Windows" ]; then
build_dir="${{ github.workspace }}\\build\\${{ matrix.build_type }}"
toolchain_path="${{ github.workspace }}\\build\\${{ matrix.build_type }}\\generators\\conan_toolchain.cmake"
else
build_dir="${{ github.workspace }}/build/${{ matrix.build_type }}"
toolchain_path="${{ github.workspace }}/build/${{ matrix.build_type }}/generators/conan_toolchain.cmake"
fi
cmake -S . \
cmake --preset ${{ steps.strings.outputs.preset }} \
-S . \
-B "$build_dir" \
-G Ninja \
-DCMAKE_TOOLCHAIN_FILE="$toolchain_path" \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build
Expand Down

0 comments on commit ee5f847

Please sign in to comment.