Fix RAND function to actually use TE_RAND_SEED and use persistent RNG #199
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: quneiform | |
| on: [push,pull_request] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: quneiform | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install quneiform | |
| run: | | |
| git clone https://github.com/Blake-Madden/quneiform.git --recurse-submodules | |
| cd quneiform | |
| cmake ./ | |
| make -j4 | |
| cd .. | |
| - name: analyze | |
| run: | | |
| # Just checking file format here | |
| ./quneiform/bin/quneiform ./ --ignore=quneiform,tests -q -v --disable=notL10NAvailable -o i18nresults.txt | |
| - name: review results | |
| run: | | |
| REPORTFILE=./i18nresults.txt | |
| WARNINGSFILE=./warnings.txt | |
| if test -f "$REPORTFILE"; then | |
| cat "$REPORTFILE" > "$WARNINGSFILE" | |
| # are there any warnings? | |
| if grep -qP '\[[a-zA-Z0-9]+\]' "$WARNINGSFILE"; then | |
| # print the remaining warnings | |
| echo Warnings detected: | |
| echo ================== | |
| cat "$WARNINGSFILE" | grep -P '\[[a-zA-Z0-9]+\]' | |
| # fail the job | |
| exit 1 | |
| else | |
| echo No issues detected | |
| fi | |
| else | |
| echo "$REPORTFILE" not found | |
| fi |