Skip to content

[CI] add GitHub Actions for build check and auto-release#10

Merged
ricky-chaoju merged 2 commits intomainfrom
ci/github-actions
Mar 7, 2026
Merged

[CI] add GitHub Actions for build check and auto-release#10
ricky-chaoju merged 2 commits intomainfrom
ci/github-actions

Conversation

@ricky-chaoju
Copy link
Copy Markdown
Contributor

Summary

  • Add CI workflow: compile check and ShellCheck on PRs/pushes to main
  • Add Release workflow: auto-create GitHub Release on version tag push
  • Add make check target to Makefile

Details

CI (ci.yml)

  • build job: installs dependencies and runs make check (compiles all .o files without linking, since GitHub runners have no GPU/libnvidia-ml.so)
  • shellcheck job: lints all shell scripts under scripts/

Release (release.yml)

  • Triggered on v* tag push
  • Verifies tag version matches NVFD_VERSION in include/nvfd.h
  • Auto-generates release notes from commit log since previous tag
  • Creates GitHub Release via softprops/action-gh-release

Usage

  • CI runs automatically on PR and push to main
  • To release: update NVFD_VERSION in nvfd.h, then git tag v1.2 && git push --tags

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the project's development and release processes by introducing robust CI/CD pipelines. It automates code quality checks for every change and streamlines the release process by automatically generating GitHub releases upon version tagging. These additions aim to improve code reliability, reduce manual overhead, and provide a more consistent release cadence.

Highlights

  • Continuous Integration (CI) Workflow: A new CI workflow has been implemented to perform compile checks and ShellCheck on pull requests and pushes to the main branch, ensuring code quality and build integrity.
  • Automated Release Workflow: An automated release workflow has been added, which triggers on version tag pushes (e.g., 'v1.2') to automatically create GitHub Releases, including generating release notes from commit logs.
  • Makefile Enhancements: A new 'check' target has been added to the Makefile, allowing developers to easily compile all source files without linking, which is useful for quick syntax and build verification.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • Makefile
    • Added 'check' to the .PHONY declaration.
    • Introduced a new 'check' target that compiles all object files without linking, providing a quick way to verify compilation.
Ignored Files
  • Ignored by pattern: .github/workflows/** (2)
    • .github/workflows/ci.yml
    • .github/workflows/release.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@ricky-chaoju ricky-chaoju merged commit 0c6f032 into main Mar 7, 2026
2 checks passed
@ricky-chaoju ricky-chaoju deleted the ci/github-actions branch March 7, 2026 13:45
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a check target in the Makefile to support a new CI workflow. This target compiles all source files into object files without linking, which is useful for build checks in environments without the necessary libraries for linking. The implementation correctly sets up the dependencies to achieve this. No issues were found in the submitted changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant