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 1424aba commit 2d526be
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,29 @@ jobs:
run: |
sudo apt-get update && sudo apt-get install -y build-essential libgtk-3-dev cmake apt-utils git wget
- name: Create build directory
run: |
mkdir -p ${{ github.workspace }}/build
- name: Configure CMake
run: |
# Configure with cmake . approach
# Run cmake in the current directory with the desired flags
cmake -DCMAKE_BUILD_TYPE=Release -DwxBUILD_SHARED=OFF \
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} .
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
-B ${{ github.workspace }}/build -S ${{ github.workspace }}
- name: Build the project
run: |
cmake --build . --config ${{ matrix.build_type }} --clean-first
cmake --build ${{ github.workspace }}/build --config ${{ matrix.build_type }} --clean-first
- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
working-directory: ${{ github.workspace }}/build
run: |
ctest --build-config ${{ matrix.build_type }}
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: minesweeper
path: ${{ steps.strings.outputs.build-output-dir }}
path: ${{ github.workspace }}/build
overwrite: true

0 comments on commit 2d526be

Please sign in to comment.