Skip to content

Init simple C project with GitHub Actions CI#1

Merged
DasVinch merged 15 commits intomainfrom
copilot/init-simple-c-project
Mar 16, 2026
Merged

Init simple C project with GitHub Actions CI#1
DasVinch merged 15 commits intomainfrom
copilot/init-simple-c-project

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 12, 2026

Bootstraps a minimal C project with a library and a GitHub Actions workflow.

Structure

  • src/main.c – trivial entry point calling greet("World")
  • src/mylib.h / src/mylib.cgreet() library; uses snprintf into a _Thread_local buffer (bounds-safe, thread-safe)
  • Makefile – builds hello target with -Wall -Wextra
  • .github/workflows/ci.yml – builds and runs the binary on every push/PR, with contents: read least-privilege token permissions

Example output

$ make && ./hello
Hello, World!
Original prompt

I want a simple C project with trivial main function, one h library file and the corresponding c library file. Initialize a .github folder with a workflow subfolder.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits March 12, 2026 11:03
Co-authored-by: DasVinch <11826483+DasVinch@users.noreply.github.com>
Co-authored-by: DasVinch <11826483+DasVinch@users.noreply.github.com>
@DasVinch DasVinch marked this pull request as ready for review March 12, 2026 11:04
Copilot AI changed the title [WIP] Add simple C project structure with main function Init simple C project with GitHub Actions CI Mar 12, 2026
@DasVinch DasVinch force-pushed the copilot/init-simple-c-project branch from 72dfd08 to 2b23b61 Compare March 12, 2026 11:15
@DasVinch DasVinch merged commit 52fb3b5 into main Mar 16, 2026
2 of 3 checks passed
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.

2 participants