Skip to content

[Sema] handle loops better during cfg traversal #74

[Sema] handle loops better during cfg traversal

[Sema] handle loops better during cfg traversal #74

Workflow file for this run

name: How To Compile Your Language Pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
BUILD_TYPE: Debug
COVERAGE_FLAGS: "\"-g -O0 --coverage -fprofile-arcs -ftest-coverage -fno-exceptions\""
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=${{env.COVERAGE_FLAGS}} -DCMAKE_C_FLAGS=${{env.COVERAGE_FLAGS}}
- 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: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}