fix(g2p): fix destruction order to prevent use-after-free in Task des… #11
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
| name: Coverage | |
| on: | |
| push: | |
| branches: [refactor, main] | |
| pull_request: | |
| branches: [refactor, main] | |
| env: | |
| BUILD_TYPE: Debug | |
| VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| coverage: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Export GitHub Actions cache variables | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | |
| core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | |
| - name: Clone vcpkg overlay (latest main) | |
| shell: bash | |
| run: | | |
| git clone --depth 1 https://github.com/stdware/vcpkg-overlay.git scripts/vcpkg | |
| echo "Overlay HEAD: $(git -C scripts/vcpkg log -1 --oneline)" | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y nasm yasm pkg-config gcovr | |
| # Pin the vcpkg client to the builtin-baseline from | |
| # scripts/vcpkg-manifest/vcpkg.json (97b19caab97ab0c8d36c93230046c8c45fcd41d0). | |
| - name: Check out vcpkg | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: microsoft/vcpkg | |
| ref: 97b19caab97ab0c8d36c93230046c8c45fcd41d0 | |
| path: .vcpkg | |
| - name: Set up vcpkg | |
| shell: bash | |
| run: | | |
| echo "VCPKG_ROOT=${GITHUB_WORKSPACE}/.vcpkg" >> "$GITHUB_ENV" | |
| git -C "${GITHUB_WORKSPACE}/.vcpkg" cat-file -e \ | |
| 97b19caab97ab0c8d36c93230046c8c45fcd41d0^{commit} | |
| - name: Bootstrap vcpkg | |
| shell: bash | |
| run: ./.vcpkg/bootstrap-vcpkg.sh -disableMetrics | |
| - name: Configure | |
| run: | | |
| cmake --preset=linux-debug \ | |
| -DSYNTHRT_ENABLE_COVERAGE=ON \ | |
| -DVCPKG_MANIFEST_DIR="${{ github.workspace }}/scripts/vcpkg-manifest" | |
| - name: Build | |
| run: cmake --build build/linux-debug --parallel | |
| - name: Test | |
| run: ctest --preset=linux-debug | |
| - name: Generate coverage report | |
| run: | | |
| gcovr --xml-pretty --exclude-unreachable-branches --print-summary \ | |
| --root . --filter 'lib/|domains/|plugins/' -o coverage.xml | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: coverage.xml |