Skip to content

Commit

Permalink
ci: Isolate Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
dr8co committed Apr 29, 2024
1 parent dc6340c commit 3114404
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/cpack-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
fi
- name: Configure CMake and Build Assets
shell: bash
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: |
cmake -B ${{ steps.strings.outputs.build-output-dir }} \
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \
Expand All @@ -80,15 +80,20 @@ jobs:
-S ${{ github.workspace }} -G ${{ steps.set-generator.outputs.generator }} \
-DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF
cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} -j 4
if [[ "${{ runner.os }}" != "Windows0" ]]; then
cmake -B ${{ steps.strings.outputs.build-output-dir }} \
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-S ${{ github.workspace }} -G ${{ steps.set-generator.outputs.generator }} \
-DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF
cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} -j 4
fi
cmake -B ${{ steps.strings.outputs.build-output-dir }} -S ${{ github.workspace }} -DBUILD_SHARED_LIBS=ON \
cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} -j 4
- name: Configure CMake and Build Assets
if: matrix.os == 'windows-latest'
shell: powershell
run: |
cmake -B ${{ steps.strings.outputs.build-output-dir }} `
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} `
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} `
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} `
-S ${{ github.workspace }} -G ${{ steps.set-generator.outputs.generator }} `
-DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF
cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} -j 4
- name: Package
working-directory: ${{ steps.strings.outputs.build-output-dir }}
Expand Down

0 comments on commit 3114404

Please sign in to comment.