Template
1
0
mirror of https://github.com/aminya/setup-cpp synced 2024-11-30 21:22:30 +08:00

Compare commits

..

14 Commits

Author SHA1 Message Date
github-actions[bot]
caf032f3dc chore(build): update dist 2024-10-26 00:27:56 +00:00
renovate[bot]
c49bd2f7b2
chore(deps): update devdependencies 2024-10-26 00:26:37 +00:00
Amin Yahyaabadi
e0e749b984 ci: use node/pnpm versions from config files [skip ci] 2024-10-25 00:20:06 -07:00
Amin Yahyaabadi
ac7fe2df3f
Merge pull request #311 from aminya/renovate/node-22.x [skip ci] 2024-10-25 00:18:16 -07:00
renovate[bot]
780290387b
chore(deps): update dependency node to v22.10.0 2024-10-25 07:08:50 +00:00
Amin Yahyaabadi
905cc44d65
Merge pull request #310 from aminya/renovate/pnpm-9.x [skip ci] 2024-10-25 00:08:28 -07:00
renovate[bot]
50b145e467
chore(deps): update pnpm to v9.12.2 2024-10-19 02:15:22 +00:00
Amin Yahyaabadi
094e4c470d
Merge pull request #309 from aminya/renovate/pnpm-9.x [skip ci] 2024-10-12 07:18:13 -07:00
renovate[bot]
3f505ba05e
chore(deps): update pnpm to v9.12.1 2024-10-07 14:04:46 +00:00
Amin Yahyaabadi
24f9b03dc4 fix: fix ci-info not running in an ESM context 2024-10-06 20:48:03 -07:00
Amin Yahyaabadi
d485b24c12 chore: v0.44.0 [skip test] 2024-10-02 14:14:36 -07:00
Amin Yahyaabadi
9935084e22
Merge pull request #308 from aminya/artifacts [skip ci] 2024-10-02 14:10:40 -07:00
Amin Yahyaabadi
2a67ff955e fix: add amd64_x86 architecture alias [skip ci] 2024-10-02 14:09:04 -07:00
Amin Yahyaabadi
76f06a9dda fix!: update Conan to v2
BREAKING Now the default Conan version is v2 instead of v1
2024-10-02 13:53:03 -07:00
47 changed files with 1156 additions and 1107 deletions

View File

@ -20,16 +20,11 @@ jobs:
Build: Build:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
name: Build name: Build
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: os:
- ubuntu-22.04 - ubuntu-22.04
node:
- 22.6.0
pnpm:
- 9.11.0
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -38,12 +33,10 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node }} node-version-file: "./.nvmrc"
- name: Setup Pnpm - name: Setup Pnpm
uses: pnpm/action-setup@v2 uses: pnpm/action-setup@v4
with:
version: ${{ matrix.pnpm }}
- name: Install - name: Install
run: | run: |
@ -84,7 +77,6 @@ jobs:
BuildExecutable: BuildExecutable:
name: Build-Executable-${{ matrix.os }} name: Build-Executable-${{ matrix.os }}
needs: [Build] needs: [Build]
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false fail-fast: false
@ -94,10 +86,6 @@ jobs:
- ubuntu-24.04 - ubuntu-24.04
- macos-13 - macos-13
- macos-14 # arm64 - macos-14 # arm64
node:
- 22
pnpm:
- 9.11.0
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -109,12 +97,10 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node }} node-version-file: "./.nvmrc"
- name: Setup Pnpm - name: Setup Pnpm
uses: pnpm/action-setup@v2 uses: pnpm/action-setup@v4
with:
version: ${{ matrix.pnpm }}
- name: Cache node_modules - name: Cache node_modules
uses: actions/cache@v4 uses: actions/cache@v4
@ -123,7 +109,7 @@ jobs:
~/.pnpm-store ~/.pnpm-store
D:\.pnpm-store D:\.pnpm-store
./node_modules ./node_modules
key: "setupcpp-node_modules-cache-OS:${{ matrix.os }}-node:${{ matrix.node }}-pnpm:${{ matrix.pnpm }}-${{ hashFiles('./.npmrc') }}-deps:${{ hashFiles('./package.json') }}" key: "setupcpp-node_modules-cache-OS:${{ matrix.os }}-${{ hashFiles('./.npmrc', './package.json', '.nvmrc', './packages/*/package.json') }}"
restore-keys: | restore-keys: |
"setupcpp-node_modules-cache-OS:${{ matrix.os }}-" "setupcpp-node_modules-cache-OS:${{ matrix.os }}-"
@ -146,7 +132,6 @@ jobs:
Test: Test:
name: Test-${{ matrix.os }} name: Test-${{ matrix.os }}
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
needs: [Build] needs: [Build]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
@ -161,10 +146,6 @@ jobs:
- macos-14 - macos-14
- macos-13 - macos-13
- macos-12 - macos-12
node:
- 22
pnpm:
- 9.11.0
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -178,12 +159,10 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node }} node-version-file: "./.nvmrc"
- name: Setup Pnpm - name: Setup Pnpm
uses: pnpm/action-setup@v2 uses: pnpm/action-setup@v4
with:
version: ${{ matrix.pnpm }}
- name: Cache node_modules - name: Cache node_modules
uses: actions/cache@v4 uses: actions/cache@v4
@ -192,7 +171,7 @@ jobs:
~/.pnpm-store ~/.pnpm-store
D:\.pnpm-store D:\.pnpm-store
./node_modules ./node_modules
key: "setupcpp-node_modules-cache-OS:${{ matrix.os }}-node:${{ matrix.node }}-pnpm:${{ matrix.pnpm }}-${{ hashFiles('./.npmrc') }}-deps:${{ hashFiles('./package.json') }}" key: "setupcpp-node_modules-cache-OS:${{ matrix.os }}-${{ hashFiles('./.npmrc', './package.json', '.nvmrc', './packages/*/package.json') }}"
restore-keys: | restore-keys: |
"setupcpp-node_modules-cache-OS:${{ matrix.os }}-" "setupcpp-node_modules-cache-OS:${{ matrix.os }}-"
@ -234,7 +213,6 @@ jobs:
Docker: Docker:
name: Docker-${{ matrix.container.image }} name: Docker-${{ matrix.container.image }}
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
needs: [Build] needs: [Build]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
@ -242,17 +220,13 @@ jobs:
matrix: matrix:
os: os:
- ubuntu-24.04 - ubuntu-24.04
node:
- 22
pnpm:
- 9.11.0
container: container:
- { file: "ubuntu-llvm.dockerfile", image: "setup-cpp-ubuntu-llvm", tag: "22.04-0.43.0" } - { file: "ubuntu-llvm.dockerfile", image: "setup-cpp-ubuntu-llvm", tag: "22.04-0.44.0" }
- { file: "fedora-llvm.dockerfile", image: "setup-cpp-fedora-llvm", tag: "40-0.43.0" } - { file: "fedora-llvm.dockerfile", image: "setup-cpp-fedora-llvm", tag: "40-0.44.0" }
- { file: "arch-llvm.dockerfile", image: "setup-cpp-arch-llvm", tag: "base-0.43.0" } - { file: "arch-llvm.dockerfile", image: "setup-cpp-arch-llvm", tag: "base-0.44.0" }
- { file: "ubuntu-mingw.dockerfile", image: "setup-cpp-ubuntu-mingw", tag: "22.04-0.43.0" } - { file: "ubuntu-mingw.dockerfile", image: "setup-cpp-ubuntu-mingw", tag: "22.04-0.44.0" }
# - { file: "fedora-mingw.dockerfile", image: "setup-cpp-fedora-mingw", tag: "40-0.43.0" } # - { file: "fedora-mingw.dockerfile", image: "setup-cpp-fedora-mingw", tag: "40-0.44.0" }
# - { file: "arch-mingw.dockerfile", image: "setup-cpp-arch-mingw", tag: "base-0.43.0" } # - { file: "arch-mingw.dockerfile", image: "setup-cpp-arch-mingw", tag: "base-0.44.0" }
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:

2
.nvmrc
View File

@ -1 +1 @@
v22.6.0 22.10.0

View File

@ -26,6 +26,9 @@
"[yaml]": { "[yaml]": {
"editor.defaultFormatter": "dprint.dprint" "editor.defaultFormatter": "dprint.dprint"
}, },
"[github-actions-workflow]": {
"editor.defaultFormatter": "dprint.dprint"
},
"cSpell.advanced.feature.useReferenceProviderWithRename": true, "cSpell.advanced.feature.useReferenceProviderWithRename": true,
"cSpell.checkOnlyEnabledFileTypes": false, "cSpell.checkOnlyEnabledFileTypes": false,
"cSpell.numSuggestions": 3, "cSpell.numSuggestions": 3,

View File

@ -57,22 +57,22 @@ 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.43.0), and run it with the available options. You can also automate downloading using `curl`, or other similar tools. Download the executable for your platform from [here](https://github.com/aminya/setup-cpp/releases/tag/v0.44.0), and run it with the available options. You can also automate downloading using `curl`, or other similar tools.
```shell ```shell
# windows x64 # windows x64
curl -o ./setup-cpp.exe -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.43.0/setup-cpp-x64-windows.exe" curl -o ./setup-cpp.exe -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.44.0/setup-cpp-x64-windows.exe"
# linux x64 # linux x64
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.43.0/setup-cpp-x64-linux" curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.44.0/setup-cpp-x64-linux"
chmod +x ./setup-cpp chmod +x ./setup-cpp
# macos arm64 # macos arm64
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.43.0/setup-cpp-arm64-macos" curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.44.0/setup-cpp-arm64-macos"
chmod +x ./setup-cpp chmod +x ./setup-cpp
# macos x64 # macos x64
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.43.0/setup-cpp-x64-macos" curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.44.0/setup-cpp-x64-macos"
chmod +x ./setup-cpp chmod +x ./setup-cpp
``` ```
@ -131,13 +131,19 @@ jobs:
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: | path: |
./build/
~/vcpkg ~/vcpkg
./build/vcpkg_installed ~/.cache/vcpkg/archives
${{ env.HOME }}/.cache/vcpkg/archives ${{ env.LOCALAPPDATA }}/vcpkg/archives
${{ env.APPDATA }}/vcpkg/archives
${{ env.XDG_CACHE_HOME }}/vcpkg/archives ${{ env.XDG_CACHE_HOME }}/vcpkg/archives
${{ env.LOCALAPPDATA }}\vcpkg\archives ~/.cache/ccache
${{ env.APPDATA }}\vcpkg\archives ~/.ccache
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ env.BUILD_TYPE }}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}} ~/.config/ccache
~/Library/Caches/ccache
${{ env.LOCALAPPDATA }}/ccache
${{ env.XDG_CACHE_HOME }}/ccache
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ env.BUILD_TYPE }}-${{ hashFiles('**/CMakeLists.txt', './vcpkg.json') }}
restore-keys: | restore-keys: |
${{ runner.os }}-${{ env.BUILD_TYPE }}- ${{ runner.os }}-${{ env.BUILD_TYPE }}-
@ -161,19 +167,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.43.0 AS builder FROM aminya/setup-cpp-ubuntu-llvm:22.04-0.44.0 AS builder
``` ```
```dockerfile ```dockerfile
FROM aminya/setup-cpp-ubuntu-mingw:22.04-0.43.0 AS builder FROM aminya/setup-cpp-ubuntu-mingw:22.04-0.44.0 AS builder
``` ```
```dockerfile ```dockerfile
FROM aminya/setup-cpp-fedora-llvm:40-0.43.0 AS builder FROM aminya/setup-cpp-fedora-llvm:40-0.44.0 AS builder
``` ```
```dockerfile ```dockerfile
FROM aminya/setup-cpp-arch-llvm:base-0.43.0 AS builder FROM aminya/setup-cpp-arch-llvm:base-0.44.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>`.
@ -192,7 +198,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.43.0 && \ npm install -g setup-cpp@v0.44.0 && \
# install the compiler and tools # install the compiler and tools
setup-cpp \ setup-cpp \
--nala true \ --nala true \
@ -301,7 +307,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.43.0 npm install -g setup-cpp@v0.44.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

View File

@ -81,6 +81,7 @@ words:
- noreply - noreply
- nothrow - nothrow
- npmrc - npmrc
- nvmrc
- Opencppcoverage - Opencppcoverage
- OSSDK - OSSDK
- papm - papm

View File

@ -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.43.0 && \ npm install -g setup-cpp@v0.44.0 && \
# install the compiler and tools # install the compiler and tools
setup-cpp \ setup-cpp \
--compiler llvm \ --compiler llvm \

View File

@ -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.43.0 && \ npm install -g setup-cpp@v0.44.0 && \
# install the compiler and tools # install the compiler and tools
setup-cpp \ setup-cpp \
--compiler mingw \ --compiler mingw \

View File

@ -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.43.0 && \ npm install -g setup-cpp@v0.44.0 && \
# install the compiler and tools # install the compiler and tools
setup-cpp \ setup-cpp \
--compiler llvm \ --compiler llvm \

View File

@ -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.43.0 && \ npm install -g setup-cpp@v0.44.0 && \
# install the compiler and tools # install the compiler and tools
setup-cpp \ setup-cpp \
--compiler mingw \ --compiler mingw \

View File

@ -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.43.0 && \ npm install -g setup-cpp@v0.44.0 && \
# install the compiler and tools # install the compiler and tools
setup-cpp \ setup-cpp \
--nala true \ --nala true \

View File

@ -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.43.0 && \ npm install -g setup-cpp@v0.44.0 && \
# install the compiler and tools # install the compiler and tools
setup-cpp \ setup-cpp \
--nala true \ --nala true \

View File

@ -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.43.0 && \ npm install -g setup-cpp@v0.44.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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
{ {
"name": "setup-cpp", "name": "setup-cpp",
"version": "0.43.0" "version": "0.44.0"
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "setup-cpp", "name": "setup-cpp",
"version": "0.43.0", "version": "0.44.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",
@ -112,7 +112,7 @@
"msvc-dev-cmd": "github:aminya/msvc-dev-cmd#c01f519bd995460228ed3dec4df51df92dc290fd", "msvc-dev-cmd": "github:aminya/msvc-dev-cmd#c01f519bd995460228ed3dec4df51df92dc290fd",
"node-downloader-helper": "2.1.9", "node-downloader-helper": "2.1.9",
"npm-check-updates": "^17.1.2", "npm-check-updates": "^17.1.2",
"npm-run-all2": "^6.2.3", "npm-run-all2": "^7.0.0",
"numerous": "2.0.0", "numerous": "2.0.0",
"p-timeout": "^6.1.2", "p-timeout": "^6.1.2",
"path-exists": "^5.0.0", "path-exists": "^5.0.0",
@ -135,7 +135,7 @@
"timers-browserify": "^2.0.12", "timers-browserify": "^2.0.12",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"ts-readme": "^1.1.3", "ts-readme": "^1.1.3",
"turbo": "2.1.2", "turbo": "2.2.3",
"typescript": "^5.6.2", "typescript": "^5.6.2",
"ubuntu-version": "^2.0.0", "ubuntu-version": "^2.0.0",
"untildify-user": "workspace:*", "untildify-user": "workspace:*",
@ -143,7 +143,7 @@
"vite": "^5.4.6", "vite": "^5.4.6",
"vite-plugin-babel": "^1.2.0", "vite-plugin-babel": "^1.2.0",
"web-streams-polyfill": "^4.0.0", "web-streams-polyfill": "^4.0.0",
"which": "^4.0.0" "which": "^5.0.0"
}, },
"productionDependencies": [ "productionDependencies": [
"@actions/core", "@actions/core",
@ -187,7 +187,7 @@
"node": ">=12.x", "node": ">=12.x",
"pnpm": "^9" "pnpm": "^9"
}, },
"packageManager": "pnpm@9.11.0", "packageManager": "pnpm@9.12.2",
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
], ],

View File

@ -1,6 +1,6 @@
{ {
"name": "ci-log", "name": "ci-log",
"version": "1.0.1", "version": "1.0.2",
"description": "Colorful logging and print for any environment including GitHub Actions", "description": "Colorful logging and print for any environment including GitHub Actions",
"repository": "https://github.com/aminya/setup-cpp", "repository": "https://github.com/aminya/setup-cpp",
"homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/ci-log", "homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/ci-log",

View File

@ -1,5 +1,6 @@
import * as core from "@actions/core" import * as core from "@actions/core"
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
export function error(err: string | Error) { export function error(err: string | Error) {
return GITHUB_ACTIONS ? core.error(err) : console.log(`\x1b[31m${err}\x1b[0m`) return GITHUB_ACTIONS ? core.error(err) : console.log(`\x1b[31m${err}\x1b[0m`)

View File

@ -1,6 +1,6 @@
{ {
"name": "envosman", "name": "envosman",
"version": "1.0.2", "version": "1.0.3",
"description": "Manage environment variables, PATH, and rc files", "description": "Manage environment variables, PATH, and rc files",
"repository": "https://github.com/aminya/setup-cpp", "repository": "https://github.com/aminya/setup-cpp",
"homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/envosman", "homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/envosman",

View File

@ -1,6 +1,7 @@
import { promises } from "fs" import { promises } from "fs"
import { exportVariable as ghExportVariable } from "@actions/core" import { exportVariable as ghExportVariable } from "@actions/core"
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { error, info } from "ci-log" import { error, info } from "ci-log"
import { execPowershell } from "exec-powershell" import { execPowershell } from "exec-powershell"
import { defaultRcPath, sourceRCInRc } from "./rc-file.js" import { defaultRcPath, sourceRCInRc } from "./rc-file.js"

View File

@ -1,7 +1,8 @@
import { promises } from "fs" import { promises } from "fs"
import { delimiter } from "path" import { delimiter } from "path"
import { addPath as ghAddPath } from "@actions/core" import { addPath as ghAddPath } from "@actions/core"
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { error, info } from "ci-log" import { error, info } from "ci-log"
import { execPowershell } from "exec-powershell" import { execPowershell } from "exec-powershell"
import { defaultRcPath, sourceRCInRc } from "./rc-file.js" import { defaultRcPath, sourceRCInRc } from "./rc-file.js"

View File

@ -1,6 +1,6 @@
{ {
"name": "setup-apt", "name": "setup-apt",
"version": "2.0.0", "version": "2.0.2",
"description": "Setup apt packages and repositories in Debian/Ubuntu-based distributions", "description": "Setup apt packages and repositories in Debian/Ubuntu-based distributions",
"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-apt", "homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/setup-apt",
@ -9,6 +9,11 @@
"main": "./dist/index.js", "main": "./dist/index.js",
"source": "./src/index.ts", "source": "./src/index.ts",
"type": "module", "type": "module",
"files": [
"dist",
"src",
"tsconfig.json"
],
"scripts": { "scripts": {
"build": "tsc --pretty", "build": "tsc --pretty",
"dev": "tsc --watch --pretty", "dev": "tsc --watch --pretty",

View File

@ -1,6 +1,7 @@
import { promises } from "fs" import { promises } from "fs"
import { execRoot } from "admina" import { execRoot } from "admina"
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { sourceRC } from "envosman" import { sourceRC } from "envosman"
import type { RcOptions } from "envosman/dist/rc-file.js" import type { RcOptions } from "envosman/dist/rc-file.js"
const { appendFile } = promises const { appendFile } = promises

View File

@ -1,6 +1,6 @@
{ {
"name": "setup-brew", "name": "setup-brew",
"version": "1.0.1", "version": "1.0.2",
"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",
@ -9,6 +9,11 @@
"main": "./dist/index.js", "main": "./dist/index.js",
"source": "./src/index.ts", "source": "./src/index.ts",
"type": "module", "type": "module",
"files": [
"dist",
"src",
"tsconfig.json"
],
"scripts": { "scripts": {
"build": "tsc --pretty", "build": "tsc --pretty",
"dev": "tsc --watch --pretty", "dev": "tsc --watch --pretty",

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,5 @@
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { cleanupTmpDir, setupTmpDir, testBin } from "../../utils/tests/test-helpers.js" import { cleanupTmpDir, setupTmpDir, testBin } from "../../utils/tests/test-helpers.js"
import { getVersion } from "../../versions/versions.js" import { getVersion } from "../../versions/versions.js"
import { setupCmake } from "../cmake.js" import { setupCmake } from "../cmake.js"

View File

@ -1,6 +1,7 @@
import path from "path" import path from "path"
import { fileURLToPath } from "url" import { fileURLToPath } from "url"
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { error, info, warning } from "ci-log" import { error, info, warning } from "ci-log"
import { addEnv } from "envosman" import { addEnv } from "envosman"
import { execa } from "execa" import { execa } from "execa"

View File

@ -1,6 +1,7 @@
import path, { join } from "path" import path, { join } from "path"
import { fileURLToPath } from "url" import { fileURLToPath } from "url"
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { info } from "ci-log" import { info } from "ci-log"
import { addEnv, addPath } from "envosman" import { addEnv, addPath } from "envosman"
import { pathExists } from "path-exists" import { pathExists } from "path-exists"

View File

@ -2,7 +2,8 @@ import { tmpdir } from "os"
import path, { delimiter, join } from "path" import path, { delimiter, join } from "path"
import { fileURLToPath } from "url" import { fileURLToPath } from "url"
import { execRootSync } from "admina" import { execRootSync } from "admina"
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { info, warning } from "ci-log" import { info, warning } from "ci-log"
import { addEnv } from "envosman" import { addEnv } from "envosman"
import memoize from "memoizee" import memoize from "memoizee"

View File

@ -2,7 +2,8 @@ import path, { join } from "path"
import { fileURLToPath } from "url" import { fileURLToPath } from "url"
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore // @ts-ignore
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { error, info, warning } from "ci-log" import { error, info, warning } from "ci-log"
import { findVcvarsall, vsversion_to_versionnumber } from "msvc-dev-cmd/lib.js" import { findVcvarsall, vsversion_to_versionnumber } from "msvc-dev-cmd/lib.js"
import { pathExists } from "path-exists" import { pathExists } from "path-exists"

View File

@ -1,4 +1,5 @@
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { cleanupTmpDir, setupTmpDir, testBin } from "../../utils/tests/test-helpers.js" import { cleanupTmpDir, setupTmpDir, testBin } from "../../utils/tests/test-helpers.js"
import { getVersion } from "../../versions/versions.js" import { getVersion } from "../../versions/versions.js"
import { setupNinja } from "../ninja.js" import { setupNinja } from "../ninja.js"

View File

@ -1,4 +1,5 @@
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { cleanupTmpDir, setupTmpDir, testBin } from "../../utils/tests/test-helpers.js" import { cleanupTmpDir, setupTmpDir, testBin } from "../../utils/tests/test-helpers.js"
import { getVersion } from "../../versions/versions.js" import { getVersion } from "../../versions/versions.js"
import { setupPowershell } from "../powershell.js" import { setupPowershell } from "../powershell.js"

View File

@ -1,4 +1,5 @@
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { info } from "ci-log" import { info } from "ci-log"
import { ubuntuVersion } from "../../utils/env/ubuntu_version.js" import { ubuntuVersion } from "../../utils/env/ubuntu_version.js"
import { cleanupTmpDir, setupTmpDir, testBin } from "../../utils/tests/test-helpers.js" import { cleanupTmpDir, setupTmpDir, testBin } from "../../utils/tests/test-helpers.js"

View File

@ -1,7 +1,8 @@
import path, { join } from "path" import path, { join } from "path"
import { fileURLToPath } from "url" import { fileURLToPath } from "url"
import { debug } from "@actions/core" import { debug } from "@actions/core"
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { info, warning } from "ci-log" import { info, warning } from "ci-log"
import { pathExists } from "path-exists" import { pathExists } from "path-exists"
import { findPyPyVersion } from "setup-python/src/find-pypy.js" import { findPyPyVersion } from "setup-python/src/find-pypy.js"

View File

@ -2,7 +2,8 @@ import assert from "assert"
import { homedir } from "os" import { homedir } from "os"
import { dirname, join, parse as pathParse } from "path" import { dirname, join, parse as pathParse } from "path"
import { getExecOutput } from "@actions/exec" import { getExecOutput } from "@actions/exec"
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { info, warning } from "ci-log" import { info, warning } from "ci-log"
import { addPath } from "envosman" import { addPath } from "envosman"
import { execa } from "execa" import { execa } from "execa"

View File

@ -1,4 +1,5 @@
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { cleanupTmpDir, setupTmpDir, testBin } from "../../utils/tests/test-helpers.js" import { cleanupTmpDir, setupTmpDir, testBin } from "../../utils/tests/test-helpers.js"
import { getVersion } from "../../versions/versions.js" import { getVersion } from "../../versions/versions.js"
import { setupTask } from "../task.js" import { setupTask } from "../task.js"

View File

@ -1,4 +1,4 @@
export const x86_64 = ["x64", "amd64", "x86_64", "win64", "64"] export const x86_64 = ["x64", "amd64", "x86_64", "win64", "64", "amd64_x86"]
export const x86 = ["x86", "i386", "ia32", "win32", "32", "x32"] export const x86 = ["x86", "i386", "ia32", "win32", "32", "x32"]
export const arm64 = ["aarch64", "arm64", "woa64", "arm"] export const arm64 = ["aarch64", "arm64", "woa64", "arm"]
export const armv7 = ["armv7", "armv7a"] export const armv7 = ["armv7", "armv7a"]

View File

@ -1,7 +1,8 @@
import { tmpdir } from "os" import { tmpdir } from "os"
import { basename, join } from "path" import { basename, join } from "path"
import { cacheDir, downloadTool, find } from "@actions/tool-cache" import { cacheDir, downloadTool, find } from "@actions/tool-cache"
import { GITHUB_ACTIONS } from "ci-info" import ciInfo from "ci-info"
const { GITHUB_ACTIONS } = ciInfo
import { info, warning } from "ci-log" import { info, warning } from "ci-log"
import { addPath } from "envosman" import { addPath } from "envosman"
import { chmod } from "fs/promises" import { chmod } from "fs/promises"

View File

@ -18,8 +18,7 @@ export const DefaultVersions: Record<string, string | undefined> = {
"clang-format": defaultLLVM, "clang-format": defaultLLVM,
clangformat: defaultLLVM, clangformat: defaultLLVM,
ninja: "1.12.1", // https://github.com/ninja-build/ninja/releases ninja: "1.12.1", // https://github.com/ninja-build/ninja/releases
cmake: "3.30.3", // https://github.com/Kitware/CMake/releases cmake: "3.30.4", // https://github.com/Kitware/CMake/releases
conan: "1.65.0", // 2.7.1 // https://github.com/conan-io/conan/releases
meson: "1.5.2", // https://github.com/mesonbuild/meson/releases meson: "1.5.2", // https://github.com/mesonbuild/meson/releases
kcov: "42", // https://github.com/SimonKagstrom/kcov/releases kcov: "42", // https://github.com/SimonKagstrom/kcov/releases
task: "3.39.2", // https://github.com/go-task/task/releases task: "3.39.2", // https://github.com/go-task/task/releases