bubble_sort example: explainreturning last_it #662
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2021-2024 Morwenn | |
# SPDX-License-Identifier: MIT | |
name: MinGW-w64 Builds | |
on: | |
push: | |
paths: | |
- '.github/workflows/build-mingw.yml' | |
- 'CMakeLists.txt' | |
- 'cmake/**' | |
- 'examples/**' | |
- 'include/**' | |
- 'tests/**' | |
pull_request: | |
paths: | |
- '.github/workflows/build-mingw.yml' | |
- 'CMakeLists.txt' | |
- 'cmake/**' | |
- 'examples/**' | |
- 'include/**' | |
- 'tests/**' | |
jobs: | |
build: | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
build_type: [Debug, Release] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure CMake | |
shell: pwsh | |
working-directory: ${{runner.workspace}} | |
run: | | |
cmake -H${{github.event.repository.name}} -Bbuild ` | |
-DCMAKE_CONFIGURATION_TYPES=${{matrix.build_type}} ` | |
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} ` | |
-G"MinGW Makefiles" ` | |
-DCPPSORT_BUILD_EXAMPLES=ON | |
- name: Build the test suite | |
working-directory: ${{runner.workspace}}/build | |
run: cmake --build . --config ${{matrix.build_type}} -j 2 | |
- name: Run the test suite | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
working-directory: ${{runner.workspace}}/build | |
run: ctest -C ${{matrix.build_type}} --no-tests=error |