ci test repo
- Makefile 51.3%
- C 34.4%
- Shell 14.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
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
|
||
| .github/workflows | ||
| src | ||
| .gitignore | ||
| GNUmakefile | ||
| LICENSE | ||
| README.md | ||
| test.sh | ||
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
-
Clone the repository:
git clone https://github.com/Melchizedek6809/make-c-template.git your-project-name cd your-project-name -
Build your project:
make -
Run your program:
make run -
Run tests:
make test
Makefile Commands 🛠️
make- Compiles the projectmake clean- Removes build artifactsmake test- Runs test scriptmake run- Builds and runs the programmake 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.