Skip to content

GitHub Actions to build C and C++ on Windows, macOS and Linux

License

Notifications You must be signed in to change notification settings

LuisEnMarroquin/cpp-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C and C++ code

Setup development tools to code C and C++

Windows Setup

Use MinGW to install C and C++ compilers

  1. Install MinGW Installation Manager
  2. Choose install location: C:\MinGW
  3. Go to: Edit the system environment variables
  4. Add to System => Path: C:\MinGW\bin\

Open MinGW and install the following packages in Basic Setup

  1. mingw32-base-bin
  2. mingw32-gcc-g++-bin
  3. msys-base-bin

Debian Setup

Just run the following

sudo apt-get install gcc g++ make -y

Docker Setup

  1. Install Docker
  2. Change the file you want to run inside Dockerfile and run the following
docker build -t cpp .
docker run --rm -it cpp

Compile

gcc hello.c # c
g++ hello.cpp # c++

Run

./a.out # Linux and MacOS
start a.exe # Windows

About

GitHub Actions to build C and C++ on Windows, macOS and Linux

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published