Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-square

GitHub Action

GCC Problem Matcher

0.1

GCC Problem Matcher

check-square

GCC Problem Matcher

Attaches a problem matcher that looks for errors during gcc builds

Installation

Copy and paste the following snippet into your .yml file.

              

- name: GCC Problem Matcher

uses: ammaraskar/gcc-problem-matcher@0.1

Learn more about this action in ammaraskar/gcc-problem-matcher

Choose a version

gcc-problem-matcher

Github Action to problem match output from gcc. This allows warnings and errors from the compiler to be prominently featured in pull requests like so:

Matcher in action in pull request

This is a direct port of the $gcc rule from vscode-cpptools. Typical usage will be:

    - uses: ammaraskar/gcc-problem-matcher@master
    - name: Build Project
      run: make

Note that this action does not build your code for you. It only makes the errors and warnings from your compiler more prominent.

Development

Keep this up-to-date with the upstream vscode-cpptools gcc matcher: https://github.com/microsoft/vscode-cpptools/blob/a8285cbc0efb5b09c2d2229b0e0772dcb3b602df/Extension/package.json#L76-L94