Skip to content

Commit

Permalink
chore: Update cmake-multi-platform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
henrykorir authored Jan 6, 2025
1 parent 0e5ccac commit b7f8bd8
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,41 @@ jobs:
choco install git -y
# Step 4: Build wxWidgets
- name: Build wxWidgets
- name: Build wxWidgets on Ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
mkdir -p external/wxWidgets/build
cd external/wxWidgets/build
cmake .. -DCMAKE_BUILD_TYPE=Release -DwxBUILD_SHARED=OFF
cmake --build . --config Release
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
shell: bash

- name: Build wxWidgets on Windows
if: ${{ matrix.os == 'windows-latest' }}
shell: pwsh
run: |
mkdir external\wxWidgets\build
cd external\wxWidgets\build
cmake .. -DCMAKE_BUILD_TYPE=Release -DwxBUILD_SHARED=OFF
cmake --build . --config Release
# Step 5: Build and test the Minesweeper project
- name: Build and test the Minesweeper project
- name: Build and test on Ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
ctest --output-on-failure
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
shell: bash

- name: Build and test on Windows
if: ${{ matrix.os == 'windows-latest' }}
shell: pwsh
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
ctest --output-on-failure

0 comments on commit b7f8bd8

Please sign in to comment.