Skip to content

Commit d6447bb

Browse files
committed
fix: build cli independent of lib
1 parent 71c0122 commit d6447bb

24 files changed

+38
-66
lines changed

.github/workflows/CI.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212

1313
env:
1414
NODE_OPTIONS: --enable-source-maps
15-
version: "1.5.0"
15+
version: "1.5.1"
1616

1717
jobs:
1818
Build:

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.21...3.28)
22

33
project(
44
setup_cpp_tests
5-
VERSION 1.5.0
5+
VERSION 1.5.1
66
DESCRIPTION "Tests for setup-cpp"
77
HOMEPAGE_URL "https://github.com/aminya/setup-cpp"
88
LANGUAGES CXX C)

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@ NOTE: setup-cpp requires Nodejs 12 or higher. If Nodejs shipped with your distri
7070

7171
#### With executable
7272

73-
Download the executable for your platform from [here](https://github.com/aminya/setup-cpp/releases/tag/v1.5.0), and run it with the available options. You can also automate downloading using `curl`, or other similar tools.
73+
Download the executable for your platform from [here](https://github.com/aminya/setup-cpp/releases/tag/v1.5.1), and run it with the available options. You can also automate downloading using `curl`, or other similar tools.
7474

7575
```shell
7676
# windows x64
77-
curl -o ./setup-cpp.exe -LJ "https://github.com/aminya/setup-cpp/releases/download/v1.5.0/setup-cpp-x64-windows.exe"
77+
curl -o ./setup-cpp.exe -LJ "https://github.com/aminya/setup-cpp/releases/download/v1.5.1/setup-cpp-x64-windows.exe"
7878
# linux x64
79-
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v1.5.0/setup-cpp-x64-linux"
79+
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v1.5.1/setup-cpp-x64-linux"
8080
# linux arm64
81-
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v1.5.0/setup-cpp-arm64-linux"
81+
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v1.5.1/setup-cpp-arm64-linux"
8282
# macos arm64
83-
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v1.5.0/setup-cpp-arm64-macos"
83+
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v1.5.1/setup-cpp-arm64-macos"
8484
# macos x64
85-
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v1.5.0/setup-cpp-x64-macos"
85+
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v1.5.1/setup-cpp-x64-macos"
8686
```
8787

8888
An example that installs llvm, cmake, ninja, ccache, and vcpkg:
@@ -213,8 +213,8 @@ The tags are in the following template:
213213

214214
- Base image: `aminya/setup-cpp-ubuntu:24.04`
215215
- Compiler image: `aminya/setup-cpp-ubuntu-llvm:24.04`
216-
- Base image with pinned setup-cpp version: `aminya/setup-cpp-ubuntu:24.04-v1.5.0`
217-
- Compiler image with pinned setup-cpp version: `aminya/setup-cpp-ubuntu-llvm:24.04-v1.5.0`
216+
- Base image with pinned setup-cpp version: `aminya/setup-cpp-ubuntu:24.04-v1.5.1`
217+
- Compiler image with pinned setup-cpp version: `aminya/setup-cpp-ubuntu-llvm:24.04-v1.5.1`
218218

219219
The supported platforms are `ubuntu`, `alpine`, `fedora`, and `arch`. The supported compilers are `llvm`, `gcc`, and `mingw`.
220220

@@ -366,7 +366,7 @@ RUN apt-get update -qq && \
366366
# install nodejs
367367
apt-get install -y --no-install-recommends nodejs npm && \
368368
# install setup-cpp
369-
npm install -g setup-cpp@v1.5.0 && \
369+
npm install -g setup-cpp@v1.5.1 && \
370370
# install the compiler and tools
371371
NODE_OPTIONS="--enable-source-maps" \
372372
setup-cpp \
@@ -476,7 +476,7 @@ stages:
476476
apt-get install -y --no-install-recommends nodejs npm
477477
478478
# install setup-cpp
479-
npm install -g setup-cpp@v1.5.0
479+
npm install -g setup-cpp@v1.5.1
480480
481481
# install the compiler and tools
482482
./setup-cpp-x64-linux --compiler $compiler --cmake true --ninja true --ccache true --vcpkg true

README_DOCKER.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ The tags are in the following template:
2020

2121
- Base image: `aminya/setup-cpp-ubuntu:24.04`
2222
- Compiler image: `aminya/setup-cpp-ubuntu-llvm:24.04`
23-
- Base image with pinned setup-cpp version: `aminya/setup-cpp-ubuntu:24.04-v1.5.0`
24-
- Compiler image with pinned setup-cpp version: `aminya/setup-cpp-ubuntu-llvm:24.04-v1.5.0`
23+
- Base image with pinned setup-cpp version: `aminya/setup-cpp-ubuntu:24.04-v1.5.1`
24+
- Compiler image with pinned setup-cpp version: `aminya/setup-cpp-ubuntu-llvm:24.04-v1.5.1`
2525

2626
The supported platforms are `ubuntu`, `alpine`, `fedora`, and `arch`. The supported compilers are `llvm`, `gcc`, and `mingw`.
2727

dist/legacy/assets/actions_python-CuNJhsEe.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/assets/actions_python-CuNJhsEe.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/assets/proxy-agent-C54PwHVe.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/assets/proxy-agent-C54PwHVe.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/cli-deps.js

-2
This file was deleted.

dist/legacy/cli-deps.js.map

-1
This file was deleted.

dist/legacy/lib.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js

+2-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/assets/actions_python-4hsZpmjR.mjs

+2
Large diffs are not rendered by default.

dist/modern/assets/actions_python-4hsZpmjR.mjs.map

+1
Large diffs are not rendered by default.

dist/modern/assets/proxy-agent-BmRoX2ZW.mjs

+2
Large diffs are not rendered by default.

dist/modern/assets/proxy-agent-BmRoX2ZW.mjs.map

+1
Large diffs are not rendered by default.

dist/modern/cli-deps.mjs

-2
This file was deleted.

dist/modern/cli-deps.mjs.map

-1
This file was deleted.

dist/modern/lib.mjs

+1-1
Large diffs are not rendered by default.

dist/modern/setup-cpp.mjs

+2-19
Large diffs are not rendered by default.

dist/modern/setup-cpp.mjs.map

+1-1
Large diffs are not rendered by default.

package-version.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"name": "setup-cpp",
3-
"version": "1.5.0"
3+
"version": "1.5.1"
44
}

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-cpp",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "Install all the tools required for building and testing C++/C projects.",
55
"repository": "https://github.com/aminya/setup-cpp",
66
"license": "Apache-2.0",
@@ -47,8 +47,8 @@
4747
],
4848
"scripts": {
4949
"build": "run-s clean && pnpm -r build && run-p build.types.modern build.types.legacy && run-p lint.root.tsc build.cli.modern build.cli.legacy build.library.modern build.library.legacy && run-p build.json build.bash",
50-
"build.cli.modern": "vite build --mode cli-deps-modern && swc ./src/setup-cpp.ts --out-file ./dist/modern/setup-cpp.mjs --config-file ./swc.modern.json && sed -i 's|.ts\"|.mjs\"|g' ./dist/modern/setup-cpp.mjs",
51-
"build.cli.legacy": "vite build --mode cli-deps-legacy && swc ./src/setup-cpp.ts --out-file ./dist/legacy/setup-cpp.js --config-file ./swc.legacy.json && sed -i 's|.ts\"|.js\"|g' ./dist/legacy/setup-cpp.js",
50+
"build.cli.modern": "cross-env NODE_ENV=production vite build --mode cli-modern",
51+
"build.cli.legacy": "cross-env NODE_ENV=production vite build --mode cli-legacy",
5252
"build.library.modern": "cross-env NODE_ENV=production vite build --mode library-modern",
5353
"build.library.legacy": "cross-env NODE_ENV=production vite build --mode library-legacy",
5454
"build.types.modern": "tsc -p ./tsconfig.types.json",

0 commit comments

Comments
 (0)