mirror of https://github.com/aminya/setup-cpp
chore: v0.41.0 [skip test]
This commit is contained in:
parent
7b3520d222
commit
bfbfe9ca0b
|
@ -241,12 +241,12 @@ jobs:
|
||||||
pnpm:
|
pnpm:
|
||||||
- 9.9.0
|
- 9.9.0
|
||||||
container:
|
container:
|
||||||
- { file: "ubuntu-llvm.dockerfile", image: "setup-cpp-ubuntu-llvm", tag: "22.04-0.40.0" }
|
- { file: "ubuntu-llvm.dockerfile", image: "setup-cpp-ubuntu-llvm", tag: "22.04-0.41.0" }
|
||||||
- { file: "fedora-llvm.dockerfile", image: "setup-cpp-fedora-llvm", tag: "40-0.40.0" }
|
- { file: "fedora-llvm.dockerfile", image: "setup-cpp-fedora-llvm", tag: "40-0.41.0" }
|
||||||
- { file: "arch-llvm.dockerfile", image: "setup-cpp-arch-llvm", tag: "base-0.40.0" }
|
- { file: "arch-llvm.dockerfile", image: "setup-cpp-arch-llvm", tag: "base-0.41.0" }
|
||||||
- { file: "ubuntu-mingw.dockerfile", image: "setup-cpp-ubuntu-mingw", tag: "22.04-0.40.0" }
|
- { file: "ubuntu-mingw.dockerfile", image: "setup-cpp-ubuntu-mingw", tag: "22.04-0.41.0" }
|
||||||
# - { file: "fedora-mingw.dockerfile", image: "setup-cpp-fedora-mingw", tag: "40-0.40.0" }
|
# - { file: "fedora-mingw.dockerfile", image: "setup-cpp-fedora-mingw", tag: "40-0.41.0" }
|
||||||
# - { file: "arch-mingw.dockerfile", image: "setup-cpp-arch-mingw", tag: "base-0.40.0" }
|
# - { file: "arch-mingw.dockerfile", image: "setup-cpp-arch-mingw", tag: "base-0.41.0" }
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|
59
README.md
59
README.md
|
@ -37,15 +37,13 @@ Run `setup-cpp` with the available options.
|
||||||
```shell
|
```shell
|
||||||
# Windows example (open PowerShell as admin)
|
# Windows example (open PowerShell as admin)
|
||||||
npx setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
npx setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
||||||
|
# restart the shell to activate the environment
|
||||||
RefreshEnv.cmd # activate the environment
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Linux/Macos example
|
# Linux/Macos example
|
||||||
sudo npx setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
sudo npx setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
||||||
|
source ~/.cpprc # activate cpp environment variables
|
||||||
source ~/.cpprc
|
|
||||||
```
|
```
|
||||||
|
|
||||||
NOTE: In the `compiler` entry, you can specify the version after `-` like `llvm-11.0.0`. For the tools, you can pass a specific version instead of `true` that chooses the default version
|
NOTE: In the `compiler` entry, you can specify the version after `-` like `llvm-11.0.0`. For the tools, you can pass a specific version instead of `true` that chooses the default version
|
||||||
|
@ -58,35 +56,40 @@ NOTE: setup-cpp requires Nodejs 12 or higher. If Nodejs shipped with your distri
|
||||||
|
|
||||||
#### With executable
|
#### With executable
|
||||||
|
|
||||||
Download the executable for your platform from [here](https://github.com/aminya/setup-cpp/releases/tag/v0.40.0), and run it with the available options. You can also automate downloading using `wget`, `curl`, or other similar tools.
|
Download the executable for your platform from [here](https://github.com/aminya/setup-cpp/releases/tag/v0.41.0), and run it with the available options. You can also automate downloading using `curl`, or other similar tools.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# windows x64
|
||||||
|
curl -o ./setup-cpp.exe -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.41.0/setup-cpp-x64-windows.exe"
|
||||||
|
|
||||||
|
# linux x64
|
||||||
|
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.41.0/setup-cpp-x64-linux"
|
||||||
|
chmod +x ./setup-cpp
|
||||||
|
|
||||||
|
# macos arm64
|
||||||
|
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.41.0/setup-cpp-arm64-macos"
|
||||||
|
chmod +x ./setup-cpp
|
||||||
|
|
||||||
|
# macos x64
|
||||||
|
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.41.0/setup-cpp-x64-macos"
|
||||||
|
chmod +x ./setup-cpp
|
||||||
|
```
|
||||||
|
|
||||||
An example that installs llvm, cmake, ninja, ccache, and vcpkg:
|
An example that installs llvm, cmake, ninja, ccache, and vcpkg:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# windows example (open PowerShell as admin)
|
# windows example (open PowerShell as admin)
|
||||||
curl -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.40.0/setup-cpp-x64-windows.exe"
|
./setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
||||||
./setup-cpp-x64-windows --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
# restart the shell to activate the environment
|
||||||
|
|
||||||
RefreshEnv.cmd # activate cpp environment variables
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# linux example
|
# linux/macos example
|
||||||
wget "https://github.com/aminya/setup-cpp/releases/download/v0.40.0/setup-cpp-x64-linux"
|
sudo ./setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
||||||
chmod +x ./setup-cpp-x64-linux
|
|
||||||
sudo ./setup-cpp-x64-linux --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
|
||||||
|
|
||||||
source ~/.cpprc # activate cpp environment variables
|
source ~/.cpprc # activate cpp environment variables
|
||||||
```
|
```
|
||||||
|
|
||||||
```shell
|
NOTE: On Unix systems, if you are already a root user (e.g., in a GitLab runner or Docker), you will not need to use `sudo`.
|
||||||
# macos example
|
|
||||||
wget "https://github.com/aminya/setup-cpp/releases/download/v0.40.0/setup-cpp-x64-macos"
|
|
||||||
chmod +x ./setup-cpp-x64-macos
|
|
||||||
sudo ./setup-cpp-x64-macos --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
|
||||||
|
|
||||||
source ~/.cpprc # activate cpp environment variables
|
|
||||||
```
|
|
||||||
|
|
||||||
### Inside GitHub Actions
|
### Inside GitHub Actions
|
||||||
|
|
||||||
|
@ -156,19 +159,19 @@ To provide fast development environments, `setup-cpp` provides several prebuilt
|
||||||
You can use these images as a base image for your project.
|
You can use these images as a base image for your project.
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM aminya/setup-cpp-ubuntu-llvm:22.04-0.40.0 AS builder
|
FROM aminya/setup-cpp-ubuntu-llvm:22.04-0.41.0 AS builder
|
||||||
```
|
```
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM aminya/setup-cpp-ubuntu-mingw:22.04-0.40.0 AS builder
|
FROM aminya/setup-cpp-ubuntu-mingw:22.04-0.41.0 AS builder
|
||||||
```
|
```
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM aminya/setup-cpp-fedora-llvm:40-0.40.0 AS builder
|
FROM aminya/setup-cpp-fedora-llvm:40-0.41.0 AS builder
|
||||||
```
|
```
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM aminya/setup-cpp-arch-llvm:base-0.40.0 AS builder
|
FROM aminya/setup-cpp-arch-llvm:base-0.41.0 AS builder
|
||||||
```
|
```
|
||||||
|
|
||||||
The names are in the format `aminya/setup-cpp-<platform>-<compiler>:<platform_version>-<setup_cpp_version>`.
|
The names are in the format `aminya/setup-cpp-<platform>-<compiler>:<platform_version>-<setup_cpp_version>`.
|
||||||
|
@ -187,7 +190,7 @@ RUN apt-get update -qq && \
|
||||||
# install nodejs
|
# install nodejs
|
||||||
apt-get install -y --no-install-recommends nodejs npm && \
|
apt-get install -y --no-install-recommends nodejs npm && \
|
||||||
# install setup-cpp
|
# install setup-cpp
|
||||||
npm install -g setup-cpp@v0.40.0 && \
|
npm install -g setup-cpp@v0.41.0 && \
|
||||||
# install the compiler and tools
|
# install the compiler and tools
|
||||||
setup-cpp \
|
setup-cpp \
|
||||||
--nala true \
|
--nala true \
|
||||||
|
@ -296,7 +299,7 @@ stages:
|
||||||
apt-get install -y --no-install-recommends nodejs npm
|
apt-get install -y --no-install-recommends nodejs npm
|
||||||
|
|
||||||
# install setup-cpp
|
# install setup-cpp
|
||||||
npm install -g setup-cpp@v0.40.0
|
npm install -g setup-cpp@v0.41.0
|
||||||
|
|
||||||
# install the compiler and tools
|
# install the compiler and tools
|
||||||
./setup-cpp-x64-linux --compiler $compiler --cmake true --ninja true --ccache true --vcpkg true
|
./setup-cpp-x64-linux --compiler $compiler --cmake true --ninja true --ccache true --vcpkg true
|
||||||
|
|
|
@ -6,7 +6,7 @@ RUN pacman -Syuu --noconfirm && \
|
||||||
# install nodejs
|
# install nodejs
|
||||||
pacman -S --noconfirm --needed nodejs npm && \
|
pacman -S --noconfirm --needed nodejs npm && \
|
||||||
# install setup-cpp
|
# install setup-cpp
|
||||||
npm install -g setup-cpp@v0.40.0 && \
|
npm install -g setup-cpp@v0.41.0 && \
|
||||||
# install the compiler and tools
|
# install the compiler and tools
|
||||||
setup-cpp \
|
setup-cpp \
|
||||||
--compiler llvm \
|
--compiler llvm \
|
||||||
|
|
|
@ -6,7 +6,7 @@ RUN pacman -Syuu --noconfirm && \
|
||||||
# install nodejs
|
# install nodejs
|
||||||
pacman -S --noconfirm --needed nodejs npm && \
|
pacman -S --noconfirm --needed nodejs npm && \
|
||||||
# install setup-cpp
|
# install setup-cpp
|
||||||
npm install -g setup-cpp@v0.40.0 && \
|
npm install -g setup-cpp@v0.41.0 && \
|
||||||
# install the compiler and tools
|
# install the compiler and tools
|
||||||
setup-cpp \
|
setup-cpp \
|
||||||
--compiler mingw \
|
--compiler mingw \
|
||||||
|
|
|
@ -4,7 +4,7 @@ FROM fedora:40 AS setup-cpp-fedora
|
||||||
# install nodejs
|
# install nodejs
|
||||||
RUN dnf -y install nodejs npm && \
|
RUN dnf -y install nodejs npm && \
|
||||||
# install setup-cpp
|
# install setup-cpp
|
||||||
npm install -g setup-cpp@v0.40.0 && \
|
npm install -g setup-cpp@v0.41.0 && \
|
||||||
# install the compiler and tools
|
# install the compiler and tools
|
||||||
setup-cpp \
|
setup-cpp \
|
||||||
--compiler llvm \
|
--compiler llvm \
|
||||||
|
|
|
@ -4,7 +4,7 @@ FROM fedora:40 AS setup-cpp-fedora-mingw
|
||||||
# install nodejs
|
# install nodejs
|
||||||
RUN dnf -y install nodejs npm && \
|
RUN dnf -y install nodejs npm && \
|
||||||
# install setup-cpp
|
# install setup-cpp
|
||||||
npm install -g setup-cpp@v0.40.0 && \
|
npm install -g setup-cpp@v0.41.0 && \
|
||||||
# install the compiler and tools
|
# install the compiler and tools
|
||||||
setup-cpp \
|
setup-cpp \
|
||||||
--compiler mingw \
|
--compiler mingw \
|
||||||
|
|
|
@ -11,7 +11,7 @@ RUN apt-get update -qq && \
|
||||||
apt-get update -qq && \
|
apt-get update -qq && \
|
||||||
apt-get install -y --no-install-recommends nodejs && \
|
apt-get install -y --no-install-recommends nodejs && \
|
||||||
# install setup-cpp
|
# install setup-cpp
|
||||||
npm install -g setup-cpp@v0.40.0 && \
|
npm install -g setup-cpp@v0.41.0 && \
|
||||||
# install the compiler and tools
|
# install the compiler and tools
|
||||||
setup-cpp \
|
setup-cpp \
|
||||||
--nala true \
|
--nala true \
|
||||||
|
|
|
@ -5,7 +5,7 @@ RUN apt-get update -qq && \
|
||||||
# install nodejs
|
# install nodejs
|
||||||
apt-get install -y --no-install-recommends nodejs npm && \
|
apt-get install -y --no-install-recommends nodejs npm && \
|
||||||
# install setup-cpp
|
# install setup-cpp
|
||||||
npm install -g setup-cpp@v0.40.0 && \
|
npm install -g setup-cpp@v0.41.0 && \
|
||||||
# install the compiler and tools
|
# install the compiler and tools
|
||||||
setup-cpp \
|
setup-cpp \
|
||||||
--nala true \
|
--nala true \
|
||||||
|
|
|
@ -5,7 +5,7 @@ RUN apt-get update -qq && \
|
||||||
# install nodejs
|
# install nodejs
|
||||||
apt-get install -y --no-install-recommends nodejs npm && \
|
apt-get install -y --no-install-recommends nodejs npm && \
|
||||||
# install setup-cpp
|
# install setup-cpp
|
||||||
npm install -g setup-cpp@v0.40.0 && \
|
npm install -g setup-cpp@v0.41.0 && \
|
||||||
# install the compiler and tools
|
# install the compiler and tools
|
||||||
setup-cpp \
|
setup-cpp \
|
||||||
--nala true \
|
--nala true \
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"name": "setup-cpp",
|
"name": "setup-cpp",
|
||||||
"version": "0.40.0"
|
"version": "0.41.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "setup-cpp",
|
"name": "setup-cpp",
|
||||||
"version": "0.40.0",
|
"version": "0.41.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",
|
||||||
|
|
|
@ -37,9 +37,15 @@ The information about an installation result
|
||||||
|
|
||||||
### `getBrewBinDir` (function)
|
### `getBrewBinDir` (function)
|
||||||
|
|
||||||
|
Get the path to the bin directory of brew
|
||||||
|
|
||||||
|
**returns:** string
|
||||||
|
|
||||||
|
### `getBrewDir` (function)
|
||||||
|
|
||||||
Get the path where brew is installed
|
Get the path where brew is installed
|
||||||
|
|
||||||
**returns:** "/opt/homebrew/bin/" | "/usr/local/bin/" | "/home/linuxbrew/.linuxbrew/bin/"
|
**returns:** "/opt/homebrew" | "/usr/local" | "/home/linuxbrew/.linuxbrew"
|
||||||
|
|
||||||
### `BrewPackOptions` (type)
|
### `BrewPackOptions` (type)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "setup-brew",
|
"name": "setup-brew",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Setup brew and brew packages",
|
"description": "Setup brew and brew packages",
|
||||||
"repository": "https://github.com/aminya/setup-cpp",
|
"repository": "https://github.com/aminya/setup-cpp",
|
||||||
"homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/setup-brew",
|
"homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/setup-brew",
|
||||||
|
|
Loading…
Reference in New Issue