Skip to content

Add C/C++ CI workflow for build and testing - #1

Open
jarlungoodoo73 wants to merge 1 commit into
linux-msft-wsl-6.6.yfrom
jarlungoodoo73-patch-1
Open

Add C/C++ CI workflow for build and testing#1
jarlungoodoo73 wants to merge 1 commit into
linux-msft-wsl-6.6.yfrom
jarlungoodoo73-patch-1

Conversation

@jarlungoodoo73

@jarlungoodoo73 jarlungoodoo73 commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary by Sourcery

CI:

  • Introduce a GitHub Actions workflow that configures, builds, runs checks, and performs distcheck for the C/C++ project on ubuntu-latest for the linux-msft-wsl-6.6.y branch.

@jarlungoodoo73 jarlungoodoo73 self-assigned this Jul 24, 2026
Copilot AI review requested due to automatic review settings July 24, 2026 21:12
@jarlungoodoo73 jarlungoodoo73 added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels Jul 24, 2026
@sourcery-ai

sourcery-ai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Reviewer's Guide

This PR adds a GitHub Actions workflow to run a basic C/C++ configure, build, and test pipeline on pushes and pull requests to the linux-msft-wsl-6.6.y branch.

File-Level Changes

Change Details Files
Introduce a GitHub Actions C/C++ CI workflow that runs configure, build, and test targets on relevant branch updates.
  • Create a new GitHub Actions workflow configuration file for C/C++ CI.
  • Configure the workflow to trigger on push and pull_request events targeting the linux-msft-wsl-6.6.y branch.
  • Define a single job that runs on ubuntu-latest and checks out the repository.
  • Add steps to run ./configure followed by make, make check, and make distcheck.
.github/workflows/c-cpp.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • Consider running this workflow on a broader set of branches or via a reusable workflow input instead of hard-coding linux-msft-wsl-6.6.y, so it’s easier to reuse for future branches.
  • Add compiler and/or OS matrices (e.g., multiple GCC/Clang versions or different Ubuntu images) to the workflow so the C/C++ build is exercised in a more representative set of environments.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Consider running this workflow on a broader set of branches or via a reusable workflow input instead of hard-coding `linux-msft-wsl-6.6.y`, so it’s easier to reuse for future branches.
- Add compiler and/or OS matrices (e.g., multiple GCC/Clang versions or different Ubuntu images) to the workflow so the C/C++ build is exercised in a more representative set of environments.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a GitHub Actions workflow intended to run CI for this repository on the linux-msft-wsl-6.6.y branch.

Changes:

  • Add a new workflow that triggers on push and pull requests targeting linux-msft-wsl-6.6.y.
  • Run a build/test sequence via shell steps in the GitHub Actions runner.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +14 to +23
steps:
- uses: actions/checkout@v4
- name: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants