build: support for EAPS 4 #138
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: Valgrind | |
| on: | |
| workflow_dispatch: | |
| release: | |
| types: [created] | |
| push: | |
| paths: | |
| - src/*.[hc] | |
| pull_request: | |
| paths: | |
| - src/*.[hc] | |
| env: | |
| VALGRIND: valgrind --trace-children=yes --leak-check=full --error-exitcode=1 | |
| NO_COVERAGE: true | |
| concurrency: | |
| # Group by workflow and ref; the last component ensures that for pull requests | |
| # we limit to one concurrent job, but for the main/stable branches we don't | |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ (github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/heads/stable-')) || github.run_number }} | |
| # Only cancel intermediate pull request builds | |
| cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
| jobs: | |
| test-valgrind: | |
| name: Ubuntu / GAP stable-4.15 / valgrind | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: "Output g++ version . . ." | |
| run: g++ --version | |
| - name: "Install Valgrind . . ." | |
| run: sudo apt-get install valgrind | |
| - name: "Install GAP . . ." | |
| uses: gap-actions/setup-gap@v3 | |
| with: | |
| gap-version: stable-4.15 | |
| configflags: --enable-valgrind | |
| - name: "Install necessary GAP package clones . . ." | |
| run: | | |
| for PKG in https://github.com/digraphs/graphviz.git https://github.com/gap-packages/NautyTracesInterface.git; do | |
| cd ${GAPROOT}/pkg | |
| git clone $PKG | |
| done | |
| - name: "Build additional necessary GAP packages . . ." | |
| run: | | |
| cd ${GAPROOT}/pkg | |
| ../bin/BuildPackages.sh --strict io orb datastructures grape NautyTracesInterface | |
| - name: "Build Digraphs . . ." | |
| uses: gap-actions/build-pkg@v2 | |
| - name: "Run DigraphsTestInstall . . ." | |
| uses: gap-actions/run-pkg-tests@v4 | |
| with: | |
| coverage: false | |
| testfile: tst/github_actions/install.g | |
| pre-gap: ${{ env.VALGRIND }} | |
| - name: "Run DigraphsTestStandard . . ." | |
| uses: gap-actions/run-pkg-tests@v4 | |
| with: | |
| coverage: false | |
| testfile: tst/github_actions/standard.g | |
| pre-gap: ${{ env.VALGRIND }} |