Fix github action (now it should run before merging). #2
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: Ubuntu 24.04 | |
| os: ubuntu-24.04 | |
| container: | |
| - name: Debian 13 | |
| os: ubuntu-latest | |
| container: debian:13 | |
| runs-on: ${{ matrix.os }} | |
| container: ${{ matrix.container || '' }} | |
| name: "Build & Test (${{ matrix.name }})" | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| steps: | |
| - name: Install container prerequisites | |
| if: matrix.container | |
| run: apt-get update && apt-get install -y git sudo | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| autoconf \ | |
| g++ \ | |
| make \ | |
| libboost-regex-dev \ | |
| libgmp-dev | |
| - name: Bootstrap and configure | |
| run: | | |
| aclocal -I m4 | |
| autoconf | |
| ./configure --disable-parsergeneration | |
| - name: Build | |
| run: make build | |
| - name: Test | |
| run: make check | |
| parser-generation: | |
| runs-on: ubuntu-24.04 | |
| name: Parser Generation | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| autoconf \ | |
| libboost-regex-dev \ | |
| libgmp-dev \ | |
| bisonc++ \ | |
| flexc++ | |
| - name: Bootstrap and configure | |
| run: | | |
| aclocal -I m4 | |
| autoconf | |
| ./configure | |
| - name: Regenerate parser | |
| run: make dist | |
| - name: Build with regenerated parser | |
| run: make build | |
| - name: Test with regenerated parser | |
| run: make check |