ci test repo
  • Makefile 51.3%
  • C 34.4%
  • Shell 14.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ben (U939/Arch Linux) 207369d2b4
Some checks failed
Simple C CI / 🦢 - ubuntu-22.04-arm (push) Successful in 2s
Simple C CI / 🍎 - macos-latest (push) Has been cancelled
Simple C CI / 🍏 - macos-13 (push) Has been cancelled
Simple C CI / 🐧 - ubuntu-latest (push) Has been cancelled
Simple C CI / 🌐 - ucrt64 - windows-latest (push) Has been cancelled
Simple C CI / 🐉 - clang64 - windows-latest (push) Has been cancelled
Simple C CI / 💪 - clangarm64 - windows-11-arm (push) Has been cancelled
Simple C CI / 🧸 - mingw32 - windows-latest (push) Has been cancelled
Simple C CI / 🪟 - mingw64 - windows-latest (push) Has been cancelled
Init
2025-04-15 14:11:54 +02:00
.github/workflows Init 2025-04-15 14:11:54 +02:00
src Init 2025-04-15 14:11:54 +02:00
.gitignore Init 2025-04-15 14:11:54 +02:00
GNUmakefile Init 2025-04-15 14:11:54 +02:00
LICENSE Initial commit 2025-04-15 12:42:40 +02:00
README.md Init 2025-04-15 14:11:54 +02:00
test.sh Init 2025-04-15 14:11:54 +02:00

Hello 👋

this is a simple template for C projects using plain GNU make, mostly did this so that I can easily use this for my own projects since I've always been copying things over from various projects I've been involved with, so the Idea is to make one nice project template for any future projects.

This template also includes a simple GitHub Actions CI setup that builds and tests this project on a lot of platforms including Windows (even Windows on ARM!).

Project Structure 📁

.
├── GNUmakefile       # GNU Make build configuration
├── src/              # Source code files
├── .github/          # CI setup files
├── test.sh           # Test script (you are writing tests, aren't you?)
└── README.md         # This file

Features ✨

  • Simple project structure
  • GNU Make build system
  • GitHub CI integration setup
  • Public domain license (Unlicense)

Getting Started 🌟

Prerequisites

  • C compiler
  • GNU Make

Using This Template

  1. Clone the repository:

    git clone https://github.com/Melchizedek6809/make-c-template.git your-project-name
    cd your-project-name
    
  2. Build your project:

    make
    
  3. Run your program:

    make run
    
  4. Run tests:

    make test
    

Makefile Commands 🛠️

  • make - Compiles the project
  • make clean - Removes build artifacts
  • make test - Runs test script
  • make run - Builds and runs the program
  • make install - Installs to system (default: /usr/local)
  • make uninstall - Uninstalls from system

License 📝

This template is released into the public domain using the Unlicense. See the LICENSE file for details.