fastmatch→Suggests #834
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
| # For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag. | |
| # https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - '**valgrind**' | |
| paths: | |
| - '.github/workflows/memcheck.yml' | |
| - 'src/**' | |
| - 'inst/include/**' | |
| - 'memcheck/**' | |
| - 'tests/testthat/**.R' | |
| - 'vignettes/**.Rmd' | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| paths: | |
| - '.github/workflows/memcheck.yml' | |
| - 'src/**' | |
| - 'inst/include/**' | |
| - 'memcheck/**' | |
| - 'tests/testthat/**.R' | |
| - 'vignettes/**.Rmd' | |
| name: mem-check | |
| jobs: | |
| mem-check: | |
| runs-on: ubuntu-24.04 | |
| name: valgrind ${{ matrix.config.test }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - {test: 'tests'} | |
| - {test: 'examples'} | |
| - {test: 'vignettes'} | |
| env: | |
| R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
| _R_CHECK_FORCE_SUGGESTS_: false | |
| RSPM: https://packagemanager.rstudio.com/cran/__linux__/noble/latest | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| ASAN_OPTIONS: verify_asan_link_order=0 | |
| # Signals to the test suite that it is running under valgrind, so heavy | |
| # scale-only tests can be skipped: valgrind's ~30x slowdown makes them the | |
| # dominant cost while adding no memory-bug coverage beyond the small cases. | |
| # Distinct from USING_ASAN, which suppresses deliberate-bad-input error | |
| # tests that ASan (but not valgrind) aborts on. | |
| TESTING_MEMCHECK: true | |
| steps: | |
| - uses: ms609/actions/memcheck@main | |
| with: | |
| test: ${{ matrix.config.test}} |