verrou into Workflow
#1
Workflow file for this run
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: Floating-Point Compliance | |
| on: [pull_request, push] | |
| jobs: | |
| self: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone PR | |
| uses: actions/checkout@v4 | |
| - name: valgrind Setup | |
| run: | | |
| # get recent release of valgrind from GitHub API | |
| VALGRIND_VERSION=$(curl -s https://api.github.com/repos/LouisBrunner/valgrind/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")') | |
| # download and extract it | |
| wget https://github.com/LouisBrunner/valgrind/releases/download/${VALGRIND_VERSION}/valgrind-${VALGRIND_VERSION}.tar.bz2 | |
| tar -xjf valgrind-${VALGRIND_VERSION}.tar.bz2 | |
| cd valgrind-${VALGRIND_VERSION} | |
| ./autogen.sh | |
| ./configure --enable-only64bit --prefix=/usr/local | |
| make | |
| sudo make install | |
| source /usr/local/env.sh | |
| - name: Run tests | |
| run: valgrind --tool=verrou ./mfc.sh test -a --dry-run | |
| - name: Check floating point compliance | |
| run: | | |
| echo "Checking floating point compliance..." |