Skip to content

Commit

Permalink
modified the yml github actions fiile
Browse files Browse the repository at this point in the history
  • Loading branch information
henrykorir committed Jan 5, 2025
1 parent 8f60312 commit aa9d718
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,30 +48,21 @@ jobs:
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Clone wxWidgets repository
run: |
git clone --recurse-submodules -j5 https://github.com/wxWidgets/wxWidgets.git
- name: Install dependencies for Ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get update && sudo apt-get install -y build-essential libgtk-3-dev cmake apt-utils git wget
- name: Install dependencies for Windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
choco install wxwidgets
- name: Configure CMake
run: |
# Configure with the provided CMakeLists.txt approach
cmake -B ${{ steps.strings.outputs.build-output-dir }} -DCMAKE_BUILD_TYPE=Release -DwxBUILD_SHARED=OFF \
cmake -DCMAKE_BUILD_TYPE=Release -DwxBUILD_SHARED=OFF \
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
-S ${{ github.workspace }}
- name: Build the project
run: |
cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} --clean-first
cmake --build . --config ${{ matrix.build_type }} --clean-first
- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
Expand Down

0 comments on commit aa9d718

Please sign in to comment.