[CI] Added GitHub CI to LibSDCParse #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: Test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 0 * * *' # daily | |
| # If this workflow is already running on a PR or branch, cancel it. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| TestSDCs: | |
| name: 'R: Test SDC Parse' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: 'Install Dependencies' | |
| run: sudo apt update && sudo apt install -y flex bison | |
| - name: 'Build sdcparse_test' | |
| run: | | |
| cmake -H. -Bbuild -DCMAKE_COMPILE_WARNING_AS_ERROR=on | |
| cmake --build build/ --target sdcparse_test | |
| - name: 'Run SDC Parse Tests' | |
| run: | | |
| cd build/ | |
| ./../test_sdcs/test_parser.sh ../test_sdcs/ |