Refactor almost all modules to prepare for future processors #255
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: build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - "*" | |
| jobs: | |
| build: | |
| name: ${{ matrix.config.name }} | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - name: "Standard + Coverage" | |
| meson_args: "-Db_coverage=true" | |
| run_coverage: true | |
| - name: "Sanitizers (ASan + UBSan)" | |
| meson_args: "-Denable_sanitizers=true -Dsanitize_address=true -Dsanitize_undefined=true" | |
| run_coverage: false | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up dependencies | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -qq \ | |
| libfftw3-dev \ | |
| ninja-build \ | |
| libsndfile1-dev \ | |
| meson \ | |
| gcovr | |
| - name: Configure build | |
| run: | | |
| meson setup build \ | |
| --buildtype=debug \ | |
| -Denable_examples=true \ | |
| -Denable_tests=true \ | |
| ${{ matrix.config.meson_args }} | |
| - name: Build project | |
| run: | | |
| meson compile -C build -v | |
| - name: Run tests | |
| run: | | |
| meson test -C build --print-errorlogs | |
| - name: Generate coverage report | |
| if: matrix.config.run_coverage | |
| run: | | |
| ninja -C build coverage-xml | |
| - name: Upload coverage to Codecov | |
| if: matrix.config.run_coverage | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: build/meson-logs/coverage.xml | |
| fail_ci_if_error: true | |
| token: ${{ secrets.CODECOV_TOKEN }} |