fix #14077: fuzzing crash (assert) in Token::update_property_info()…
#2597
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
| # Syntax reference https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
| # Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners | |
| name: CI-mingw | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'releases/**' | |
| - '2.*' | |
| tags: | |
| - '2.*' | |
| pull_request: | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| shell: msys2 {0} | |
| jobs: | |
| # TODO: add CMake build | |
| build_mingw: | |
| strategy: | |
| matrix: | |
| # only use the latest windows-* as the installed toolchain is identical | |
| os: [windows-2025] | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 19 # max + 3*std of the last 7K runs | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Set up MSYS2 | |
| uses: msys2/setup-msys2@v2 | |
| with: | |
| release: false # use pre-installed | |
| # TODO: install mingw-w64-x86_64-make and use mingw32.make instead - currently fails with "Windows Subsystem for Linux has no installed distributions." | |
| install: >- | |
| mingw-w64-x86_64-lld | |
| mingw-w64-x86_64-ccache | |
| make | |
| mingw-w64-x86_64-gcc | |
| - name: ccache | |
| uses: hendrikmuhs/[email protected] | |
| with: | |
| key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }} | |
| - name: Build cppcheck | |
| run: | | |
| export PATH="/mingw64/lib/ccache/bin:$PATH" | |
| # set RDYNAMIC to work around broken MinGW detection | |
| # use lld for faster linking | |
| make VERBOSE=1 RDYNAMIC=-lshlwapi LDOPTS=-fuse-ld=lld -j$(nproc) CXXOPTS="-Werror" cppcheck | |
| - name: Build test | |
| run: | | |
| export PATH="/mingw64/lib/ccache/bin:$PATH" | |
| # set RDYNAMIC to work around broken MinGW detection | |
| # use lld for faster linking | |
| make VERBOSE=1 RDYNAMIC=-lshlwapi LDOPTS=-fuse-ld=lld -j$(nproc) CXXOPTS="-Werror" testrunner | |
| - name: Run test | |
| run: | | |
| export PATH="/mingw64/lib/ccache/bin:$PATH" | |
| # set RDYNAMIC to work around broken MinGW detection | |
| # use lld for faster linking | |
| make VERBOSE=1 RDYNAMIC=-lshlwapi LDOPTS=-fuse-ld=lld -j$(nproc) CXXOPTS="-Werror" check |