From 615b5f70a4243f58cc4a46c6c0953cb60bed5c9e Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 24 May 2023 11:31:29 -0700 Subject: [PATCH] chore: v0.27.0 --- README.md | 26 ++++++++++---------------- package.json | 2 +- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index ea38ccea..23bc1172 100644 --- a/README.md +++ b/README.md @@ -32,24 +32,18 @@ Setting up a **cross-platform** environment for building and testing C++/C proje #### With npm and Nodejs -Install setup-cpp with npm: +Run `setup-cpp` with the available options. ```shell -npm install -g setup-cpp -``` - -Then run `setup-cpp` with the available options. - -```shell -# windows example (open PowerShell as admin) -setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true +# Windows example (open PowerShell as admin) +npx setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true RefreshEnv.cmd # activate the environment ``` ```shell -# linux/macos example -sudo setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true +# Linux/Macos example +sudo npx setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true source ~/.cpprc ``` @@ -62,13 +56,13 @@ NOTE: On Unix systems, if you are already a root user (e.g., in a GitLab runner #### With executable -Download the executable for your platform from [here](https://github.com/aminya/setup-cpp/releases/tag/v0.26.2), 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.27.0), and run it with the available options. You can also automate downloading using `wget`, `curl`, or other similar tools. An example that installs llvm, cmake, ninja, ccache, and vcpkg: ```shell # windows example (open PowerShell as admin) -curl -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.26.2/setup-cpp-x64-windows.exe" +curl -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.27.0/setup-cpp-x64-windows.exe" ./setup-cpp-x64-windows --compiler llvm --cmake true --ninja true --ccache true --vcpkg true RefreshEnv.cmd # activate cpp environment variables @@ -76,7 +70,7 @@ RefreshEnv.cmd # activate cpp environment variables ```shell # linux example -wget "https://github.com/aminya/setup-cpp/releases/download/v0.26.2/setup-cpp-x64-linux" +wget "https://github.com/aminya/setup-cpp/releases/download/v0.27.0/setup-cpp-x64-linux" chmod +x ./setup-cpp-x64-linux sudo ./setup-cpp-x64-linux --compiler llvm --cmake true --ninja true --ccache true --vcpkg true @@ -85,7 +79,7 @@ source ~/.cpprc # activate cpp environment variables ```shell # macos example -wget "https://github.com/aminya/setup-cpp/releases/download/v0.26.2/setup-cpp-x64-macos" +wget "https://github.com/aminya/setup-cpp/releases/download/v0.27.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 @@ -255,7 +249,7 @@ stages: apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F .setup-cpp: &setup-cpp | - curl -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.26.2/setup-cpp-x64-linux" + curl -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.27.0/setup-cpp-x64-linux" chmod +x setup-cpp-x64-linux ./setup-cpp-x64-linux --compiler $compiler --cmake true --ninja true --ccache true --vcpkg true source ~/.cpprc diff --git a/package.json b/package.json index 4307fe32..ff9a9d45 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "setup-cpp", - "version": "0.26.2", + "version": "0.27.0", "description": "Install all the tools required for building and testing C++/C projects.", "repository": "https://github.com/aminya/setup-cpp", "license": "Apache-2.0",