Skip to content

How To Compile Your Language Pipeline #13

How To Compile Your Language Pipeline

How To Compile Your Language Pipeline #13

Workflow file for this run

name: How To Compile Your Language Pipeline
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
workflow_dispatch:
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_FLAGS="-g -O0 --coverage -fprofile-arcs -ftest-coverage" -DCMAKE_C_FLAGS="-g -O0 --coverage -fprofile-arcs -ftest-coverage"
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: |
pip install lit filecheck
cmake --build . -t test
- name: Coverage
uses: threeal/gcovr-action@v1.0.0