Repository navigation
Fix #773 Do not record a usage for a function-like macro name without… #1755
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
| # Some convenient links: | |
| # - https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md | |
| # | |
| name: CI-windows | |
| on: [push,pull_request] | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| shell: cmd | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [windows-2022, windows-2025, windows-11-arm] | |
| config: [Release, Debug] | |
| include: | |
| - os: windows-2022 | |
| sln: sln | |
| - os: windows-2025 | |
| sln: slnx | |
| - os: windows-11-arm | |
| sln: slnx | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Setup msbuild.exe | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| check-latest: true | |
| - name: Install missing Python packages | |
| run: | | |
| python -m pip install pip --upgrade || exit /b !errorlevel! | |
| python -m pip install pytest || exit /b !errorlevel! | |
| - name: Run CMake | |
| run: | | |
| cmake -A x64 -Werror=dev --warn-uninitialized -DCMAKE_COMPILE_WARNING_AS_ERROR=On . || exit /b !errorlevel! | |
| - name: Build | |
| run: | | |
| msbuild -m simplecpp.${{ matrix.sln }} /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel! | |
| - name: Test | |
| run: | | |
| .\${{ matrix.config }}\testrunner.exe || exit /b !errorlevel! | |
| - name: Selfcheck | |
| run: | | |
| .\${{ matrix.config }}\simplecpp.exe simplecpp.cpp -e || exit /b !errorlevel! | |
| - name: integration test | |
| run: | | |
| set SIMPLECPP_EXE_PATH=.\${{ matrix.config }}\simplecpp.exe | |
| python -m pytest integration_test.py -vv || exit /b !errorlevel! | |
| - name: run-tests.py | |
| run: | | |
| set SIMPLECPP_EXE_PATH=.\${{ matrix.config }}\simplecpp.exe | |
| python run-tests.py || exit /b !errorlevel! | |
| - name: Run CMake (c++17) | |
| run: | | |
| cmake -S . -B build.cxx17 -A x64 -Werror=dev --warn-uninitialized -DCMAKE_CXX_STANDARD=17 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel! | |
| - name: Build (c++17) | |
| run: | | |
| msbuild -m build.cxx17\simplecpp.${{ matrix.sln }} /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel! | |
| - name: Run CMake (c++20) | |
| run: | | |
| cmake -S . -B build.cxx20 -A x64 -Werror=dev --warn-uninitialized -DCMAKE_CXX_STANDARD=20 -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel! | |
| - name: Build (c++20) | |
| run: | | |
| msbuild -m build.cxx20\simplecpp.${{ matrix.sln }} /p:Configuration=${{ matrix.config }} /p:Platform=x64 || exit /b !errorlevel! | |