{"id":19943210,"url":"https://github.com/root-project/gcc-problem-matcher-improved","last_synced_at":"2025-05-03T15:32:57.312Z","repository":{"id":176833058,"uuid":"659630625","full_name":"root-project/gcc-problem-matcher-improved","owner":"root-project","description":"Creates annotations for compiler warnings and errors in GitHub Workflows","archived":false,"fork":false,"pushed_at":"2024-10-17T05:37:18.000Z","size":48,"stargazers_count":3,"open_issues_count":2,"forks_count":4,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-10-19T07:54:03.186Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/root-project.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-28T08:28:26.000Z","updated_at":"2024-10-17T05:37:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"99830be5-2a8d-4ec9-a668-527741395121","html_url":"https://github.com/root-project/gcc-problem-matcher-improved","commit_stats":null,"previous_names":["root-project/gcc-problem-matcher-improved"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root-project%2Fgcc-problem-matcher-improved","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root-project%2Fgcc-problem-matcher-improved/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root-project%2Fgcc-problem-matcher-improved/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root-project%2Fgcc-problem-matcher-improved/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/root-project","download_url":"https://codeload.github.com/root-project/gcc-problem-matcher-improved/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224365282,"owners_count":17299156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T00:15:48.264Z","updated_at":"2024-11-13T00:15:48.832Z","avatar_url":"https://github.com/root-project.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Improved GCC Problem Matcher\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Froot-project%2Fgcc-problem-matcher-improved.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Froot-project%2Fgcc-problem-matcher-improved?ref=badge_shield)\n\nCreates annotations for compiler diagnostics (warnings and errors) when building your code.\n\n![image](https://user-images.githubusercontent.com/82065181/225907856-336fa631-6520-44ce-bdf5-cf5780e45e40.png)\n\n## Do you prefer your workflow to fail?\n\nSuppose you don't like compiler warnings.\nUse the [Annotation Failure Action](https://github.com/root-project/annotation-failure-action)!\nIt finds problem annotations created by the *Improved GCC Problem Matcher* and causes the workflow job to fail.\nThis is way better than `-Werror` (\"any warning is treated as a compilation error\") because your build can complete and you can still run your test suite and collect potential test failures.\n\n## Inputs\n\n### build-directory\n\n**Optional** Directory the build is running in. Matched errors will not be able to point to the correct file or create warnings in the `Files changed` overview unless this is correct.\n\n## Example usage\n\nCreate annotations for builds done in the default directory. Add this anywhere before starting the build.\n\n```yaml\n    - uses: root-project/gcc-problem-matcher-improved@v1\n    \n    - name: Build\n      run: |\n        ...\n```\n\nCreate annotations for builds done in directory `/workspace/build/`\n\n```yaml\n    - uses: root-project/gcc-problem-matcher-improved@v1\n      with:\n        build-directory: /workspace/build/\n        \n    - name: Build\n      run: |\n         ...\n```\n\n## Dev Internals\n\n### Directories\n\n`src/` contains the sources; `dist/` is what people use in production.\nTo compile `src/` into `dist/` run `npm run build`.\n\n### Prerequisite packages for `npm run build`\n\nInstall **`nvm`** through `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash` or similar, as decribed e.g. [here](https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04#option-3-installing-node-using-the-node-version-manager).\nInstall **`npm`** by taking a recent version from the output of `nvm list-remote` and installing it through `nvm install v20` or similar.\n`npm run build` needs `ncc` which one needs to install through `npm i -g @vercel/ncc`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froot-project%2Fgcc-problem-matcher-improved","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froot-project%2Fgcc-problem-matcher-improved","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froot-project%2Fgcc-problem-matcher-improved/lists"}