Skip to content

Commit

Permalink
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 0d65a48 commit e22a17e
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,33 @@ jobs:
choco install visualstudio2019buildtools -y --ignore-checksums
choco install git -y
# Step 3: Build wxWidgets (cross-platform setup)
# Step 3: Build wxWidgets
- name: Configure and build wxWidgets
run: |
mkdir -p external/wxWidgets/build
cd external/wxWidgets/build
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
mkdir -p external/wxWidgets/build
cd external/wxWidgets/build
else
if (-Not (Test-Path "external/wxWidgets/build")) {
New-Item -ItemType Directory -Path external/wxWidgets/build
}
Set-Location external/wxWidgets/build
fi
cmake .. -DCMAKE_BUILD_TYPE=Release -DwxBUILD_SHARED=OFF
cmake --build . --config Release
# Step 4: Build and test your project
- name: Build and test using CMake
run: |
mkdir build && cd build
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
mkdir -p build
cd build
else
if (-Not (Test-Path "build")) {
New-Item -ItemType Directory -Path build
}
Set-Location build
fi
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
ctest --output-on-failure

0 comments on commit e22a17e

Please sign in to comment.