mirror of https://github.com/aminya/setup-cpp
chore: v0.17.0 [skip ci]
This commit is contained in:
parent
af7919aa41
commit
666218412f
20
README.md
20
README.md
|
@ -6,7 +6,7 @@ Install all the tools required for building and testing C++/C projects.
|
||||||
|
|
||||||
Setting up a **cross-platform** environment for building and testing C++/C projects is a bit tricky. Each platform has its own compilers, and each of them requires a different installation procedure. This package aims to fix this issue.
|
Setting up a **cross-platform** environment for building and testing C++/C projects is a bit tricky. Each platform has its own compilers, and each of them requires a different installation procedure. This package aims to fix this issue.
|
||||||
|
|
||||||
This package is designed to be **modular** and as **minimal** as possible. This will allow you to install the tools you want. It is continuously tested on Windows, Linux, and macOS.
|
This package is designed to be **modular** and as **minimal** as possible. This will allow you to install the tools you want. It is continuously tested and supported on several configurations including Windows (11, 10, 2022, 2019), Linux (Ubuntu 22.04, Ubuntu 20.04, ArchLinux), and macOS (10.15 and 11).
|
||||||
|
|
||||||
The package can be used locally or from CI services like GitHub Actions.
|
The package can be used locally or from CI services like GitHub Actions.
|
||||||
|
|
||||||
|
@ -36,13 +36,13 @@ Tip: You can automate downloading using `wget`, `curl`, or other similar tools.
|
||||||
|
|
||||||
### Executable
|
### Executable
|
||||||
|
|
||||||
Download the executable for your platform from [here](https://github.com/aminya/setup-cpp/releases/tag/v0.16.0), and run it with the available options.
|
Download the executable for your platform from [here](https://github.com/aminya/setup-cpp/releases/tag/v0.17.0), and run it with the available options.
|
||||||
|
|
||||||
An example that installs llvm, cmake, ninja, ccache, and vcpkg:
|
An example that installs llvm, cmake, ninja, ccache, and vcpkg:
|
||||||
|
|
||||||
```ps1
|
```ps1
|
||||||
# windows example (open shell as admin)
|
# windows example (open shell as admin)
|
||||||
curl.exe -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.16.0/setup_cpp_windows.exe"
|
curl.exe -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.17.0/setup_cpp_windows.exe"
|
||||||
.\setup_cpp_windows --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
.\setup_cpp_windows --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
||||||
|
|
||||||
RefreshEnv.cmd # activate cpp environment variables
|
RefreshEnv.cmd # activate cpp environment variables
|
||||||
|
@ -50,7 +50,7 @@ RefreshEnv.cmd # activate cpp environment variables
|
||||||
|
|
||||||
```ps1
|
```ps1
|
||||||
# linux example
|
# linux example
|
||||||
wget "https://github.com/aminya/setup-cpp/releases/download/v0.16.0/setup_cpp_linux"
|
wget "https://github.com/aminya/setup-cpp/releases/download/v0.17.0/setup_cpp_linux"
|
||||||
chmod +x setup_cpp_linux
|
chmod +x setup_cpp_linux
|
||||||
sudo ./setup_cpp_linux --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
sudo ./setup_cpp_linux --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ source ~/.cpprc # activate cpp environment variables
|
||||||
|
|
||||||
```ps1
|
```ps1
|
||||||
# mac example
|
# mac example
|
||||||
wget "https://github.com/aminya/setup-cpp/releases/download/v0.16.0/setup_cpp_mac"
|
wget "https://github.com/aminya/setup-cpp/releases/download/v0.17.0/setup_cpp_mac"
|
||||||
chmod +x setup_cpp_mac
|
chmod +x setup_cpp_mac
|
||||||
sudo ./setup_cpp_mac --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
sudo ./setup_cpp_mac --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ NOTE: On Unix systems, you will not need `sudo` if you are already a root user (
|
||||||
|
|
||||||
### With Nodejs
|
### With Nodejs
|
||||||
|
|
||||||
Download the `setup_cpp.js` file form [here](https://github.com/aminya/setup-cpp/releases/download/v0.16.0/setup_cpp.js), and run it with the available options.
|
Download the `setup_cpp.js` file form [here](https://github.com/aminya/setup-cpp/releases/download/v0.17.0/setup_cpp.js), and run it with the available options.
|
||||||
|
|
||||||
On Windows:
|
On Windows:
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ Open the shell as admin, download via `curl`, then install
|
||||||
|
|
||||||
```ps1
|
```ps1
|
||||||
# open shell as admin
|
# open shell as admin
|
||||||
curl.exe -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.16.0/setup_cpp.js"
|
curl.exe -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.17.0/setup_cpp.js"
|
||||||
node ./setup_cpp.js --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
node ./setup_cpp.js --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
||||||
|
|
||||||
RefreshEnv.cmd # activate cpp environment variables
|
RefreshEnv.cmd # activate cpp environment variables
|
||||||
|
@ -91,7 +91,7 @@ RefreshEnv.cmd # activate cpp environment variables
|
||||||
On Linux or Mac:
|
On Linux or Mac:
|
||||||
|
|
||||||
```ps1
|
```ps1
|
||||||
wget "https://github.com/aminya/setup-cpp/releases/download/v0.16.0/setup_cpp.js"
|
wget "https://github.com/aminya/setup-cpp/releases/download/v0.17.0/setup_cpp.js"
|
||||||
sudo node ./setup_cpp.js --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
sudo node ./setup_cpp.js --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
||||||
|
|
||||||
source ~/.cpprc # activate cpp environment variables
|
source ~/.cpprc # activate cpp environment variables
|
||||||
|
@ -170,7 +170,7 @@ FROM ubuntu:22.04 AS base
|
||||||
WORKDIR "/"
|
WORKDIR "/"
|
||||||
RUN apt-get update -qq
|
RUN apt-get update -qq
|
||||||
RUN apt-get install -y --no-install-recommends wget
|
RUN apt-get install -y --no-install-recommends wget
|
||||||
RUN wget --no-verbose "https://github.com/aminya/setup-cpp/releases/download/v0.16.0/setup_cpp_linux"
|
RUN wget --no-verbose "https://github.com/aminya/setup-cpp/releases/download/v0.17.0/setup_cpp_linux"
|
||||||
RUN chmod +x ./setup_cpp_linux
|
RUN chmod +x ./setup_cpp_linux
|
||||||
|
|
||||||
# install llvm, cmake, ninja, and ccache
|
# install llvm, cmake, ninja, and ccache
|
||||||
|
@ -264,7 +264,7 @@ stages:
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
|
||||||
|
|
||||||
.setup_cpp: &setup_cpp |
|
.setup_cpp: &setup_cpp |
|
||||||
curl -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.16.0/setup_cpp_linux"
|
curl -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.17.0/setup_cpp_linux"
|
||||||
chmod +x setup_cpp_linux
|
chmod +x setup_cpp_linux
|
||||||
./setup_cpp_linux --compiler $compiler --cmake true --ninja true --ccache true --vcpkg true
|
./setup_cpp_linux --compiler $compiler --cmake true --ninja true --ccache true --vcpkg true
|
||||||
source ~/.cpprc
|
source ~/.cpprc
|
||||||
|
|
|
@ -5,7 +5,7 @@ FROM ubuntu:22.04 AS base
|
||||||
WORKDIR "/"
|
WORKDIR "/"
|
||||||
RUN apt-get update -qq
|
RUN apt-get update -qq
|
||||||
RUN apt-get install -y --no-install-recommends wget
|
RUN apt-get install -y --no-install-recommends wget
|
||||||
RUN wget --no-verbose "https://github.com/aminya/setup-cpp/releases/download/v0.16.0/setup_cpp_linux"
|
RUN wget --no-verbose "https://github.com/aminya/setup-cpp/releases/download/v0.17.0/setup_cpp_linux"
|
||||||
RUN chmod +x ./setup_cpp_linux
|
RUN chmod +x ./setup_cpp_linux
|
||||||
|
|
||||||
# install llvm, cmake, ninja, and ccache
|
# install llvm, cmake, ninja, and ccache
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "setup-cpp",
|
"name": "setup-cpp",
|
||||||
"version": "0.16.0",
|
"version": "0.17.0",
|
||||||
"description": "Install all the tools required for building and testing C++/C projects.",
|
"description": "Install all the tools required for building and testing C++/C projects.",
|
||||||
"repository": "https://github.com/aminya/setup-cpp",
|
"repository": "https://github.com/aminya/setup-cpp",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
|
Loading…
Reference in New Issue