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

Compare commits

..

2 Commits

Author SHA1 Message Date
github-actions[bot]
6db2148910 chore(build): update dist 2024-09-23 06:17:22 +00:00
renovate[bot]
fc812b221a
chore(deps): pin dependencies 2024-09-23 06:15:53 +00:00
47 changed files with 1108 additions and 1157 deletions

View File

@ -20,11 +20,16 @@ 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:
@ -33,10 +38,12 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version-file: "./.nvmrc" node-version: ${{ matrix.node }}
- name: Setup Pnpm - name: Setup Pnpm
uses: pnpm/action-setup@v4 uses: pnpm/action-setup@v2
with:
version: ${{ matrix.pnpm }}
- name: Install - name: Install
run: | run: |
@ -77,6 +84,7 @@ 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
@ -86,6 +94,10 @@ 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
@ -97,10 +109,12 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version-file: "./.nvmrc" node-version: ${{ matrix.node }}
- name: Setup Pnpm - name: Setup Pnpm
uses: pnpm/action-setup@v4 uses: pnpm/action-setup@v2
with:
version: ${{ matrix.pnpm }}
- name: Cache node_modules - name: Cache node_modules
uses: actions/cache@v4 uses: actions/cache@v4
@ -109,7 +123,7 @@ jobs:
~/.pnpm-store ~/.pnpm-store
D:\.pnpm-store D:\.pnpm-store
./node_modules ./node_modules
key: "setupcpp-node_modules-cache-OS:${{ matrix.os }}-${{ hashFiles('./.npmrc', './package.json', '.nvmrc', './packages/*/package.json') }}" key: "setupcpp-node_modules-cache-OS:${{ matrix.os }}-node:${{ matrix.node }}-pnpm:${{ matrix.pnpm }}-${{ hashFiles('./.npmrc') }}-deps:${{ hashFiles('./package.json') }}"
restore-keys: | restore-keys: |
"setupcpp-node_modules-cache-OS:${{ matrix.os }}-" "setupcpp-node_modules-cache-OS:${{ matrix.os }}-"
@ -132,6 +146,7 @@ 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:
@ -146,6 +161,10 @@ 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:
@ -159,10 +178,12 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version-file: "./.nvmrc" node-version: ${{ matrix.node }}
- name: Setup Pnpm - name: Setup Pnpm
uses: pnpm/action-setup@v4 uses: pnpm/action-setup@v2
with:
version: ${{ matrix.pnpm }}
- name: Cache node_modules - name: Cache node_modules
uses: actions/cache@v4 uses: actions/cache@v4
@ -171,7 +192,7 @@ jobs:
~/.pnpm-store ~/.pnpm-store
D:\.pnpm-store D:\.pnpm-store
./node_modules ./node_modules
key: "setupcpp-node_modules-cache-OS:${{ matrix.os }}-${{ hashFiles('./.npmrc', './package.json', '.nvmrc', './packages/*/package.json') }}" key: "setupcpp-node_modules-cache-OS:${{ matrix.os }}-node:${{ matrix.node }}-pnpm:${{ matrix.pnpm }}-${{ hashFiles('./.npmrc') }}-deps:${{ hashFiles('./package.json') }}"
restore-keys: | restore-keys: |
"setupcpp-node_modules-cache-OS:${{ matrix.os }}-" "setupcpp-node_modules-cache-OS:${{ matrix.os }}-"
@ -213,6 +234,7 @@ 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:
@ -220,13 +242,17 @@ 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.44.0" } - { file: "ubuntu-llvm.dockerfile", image: "setup-cpp-ubuntu-llvm", tag: "22.04-0.43.0" }
- { file: "fedora-llvm.dockerfile", image: "setup-cpp-fedora-llvm", tag: "40-0.44.0" } - { file: "fedora-llvm.dockerfile", image: "setup-cpp-fedora-llvm", tag: "40-0.43.0" }
- { file: "arch-llvm.dockerfile", image: "setup-cpp-arch-llvm", tag: "base-0.44.0" } - { file: "arch-llvm.dockerfile", image: "setup-cpp-arch-llvm", tag: "base-0.43.0" }
- { file: "ubuntu-mingw.dockerfile", image: "setup-cpp-ubuntu-mingw", tag: "22.04-0.44.0" } - { file: "ubuntu-mingw.dockerfile", image: "setup-cpp-ubuntu-mingw", tag: "22.04-0.43.0" }
# - { file: "fedora-mingw.dockerfile", image: "setup-cpp-fedora-mingw", tag: "40-0.44.0" } # - { file: "fedora-mingw.dockerfile", image: "setup-cpp-fedora-mingw", tag: "40-0.43.0" }
# - { file: "arch-mingw.dockerfile", image: "setup-cpp-arch-mingw", tag: "base-0.44.0" } # - { file: "arch-mingw.dockerfile", image: "setup-cpp-arch-mingw", tag: "base-0.43.0" }
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:

2
.nvmrc
View File

@ -1 +1 @@
22.10.0 v22.6.0

View File

@ -26,9 +26,6 @@
"[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.44.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.43.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.44.0/setup-cpp-x64-windows.exe" curl -o ./setup-cpp.exe -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.43.0/setup-cpp-x64-windows.exe"
# linux x64 # linux x64
curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.44.0/setup-cpp-x64-linux" curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.43.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.44.0/setup-cpp-arm64-macos" curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.43.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.44.0/setup-cpp-x64-macos" curl -o ./setup-cpp -LJ "https://github.com/aminya/setup-cpp/releases/download/v0.43.0/setup-cpp-x64-macos"
chmod +x ./setup-cpp chmod +x ./setup-cpp
``` ```
@ -131,19 +131,13 @@ jobs:
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: | path: |
./build/
~/vcpkg ~/vcpkg
~/.cache/vcpkg/archives ./build/vcpkg_installed
${{ env.LOCALAPPDATA }}/vcpkg/archives ${{ env.HOME }}/.cache/vcpkg/archives
${{ env.APPDATA }}/vcpkg/archives
${{ env.XDG_CACHE_HOME }}/vcpkg/archives ${{ env.XDG_CACHE_HOME }}/vcpkg/archives
~/.cache/ccache ${{ env.LOCALAPPDATA }}\vcpkg\archives
~/.ccache ${{ env.APPDATA }}\vcpkg\archives
~/.config/ccache key: ${{ runner.os }}-${{ matrix.compiler }}-${{ env.BUILD_TYPE }}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}}
~/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 }}-
@ -167,19 +161,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.44.0 AS builder FROM aminya/setup-cpp-ubuntu-llvm:22.04-0.43.0 AS builder
``` ```
```dockerfile ```dockerfile
FROM aminya/setup-cpp-ubuntu-mingw:22.04-0.44.0 AS builder FROM aminya/setup-cpp-ubuntu-mingw:22.04-0.43.0 AS builder
``` ```
```dockerfile ```dockerfile
FROM aminya/setup-cpp-fedora-llvm:40-0.44.0 AS builder FROM aminya/setup-cpp-fedora-llvm:40-0.43.0 AS builder
``` ```
```dockerfile ```dockerfile
FROM aminya/setup-cpp-arch-llvm:base-0.44.0 AS builder FROM aminya/setup-cpp-arch-llvm:base-0.43.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>`.
@ -198,7 +192,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.44.0 && \ npm install -g setup-cpp@v0.43.0 && \
# install the compiler and tools # install the compiler and tools
setup-cpp \ setup-cpp \
--nala true \ --nala true \
@ -307,7 +301,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.44.0 npm install -g setup-cpp@v0.43.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,7 +81,6 @@ 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.44.0 && \ npm install -g setup-cpp@v0.43.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.44.0 && \ npm install -g setup-cpp@v0.43.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.44.0 && \ npm install -g setup-cpp@v0.43.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.44.0 && \ npm install -g setup-cpp@v0.43.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.44.0 && \ npm install -g setup-cpp@v0.43.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.44.0 && \ npm install -g setup-cpp@v0.43.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.44.0 && \ npm install -g setup-cpp@v0.43.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.44.0" "version": "0.43.0"
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "setup-cpp", "name": "setup-cpp",
"version": "0.44.0", "version": "0.43.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": "^7.0.0", "npm-run-all2": "^6.2.3",
"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.2.3", "turbo": "2.1.2",
"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": "^5.0.0" "which": "^4.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.12.2", "packageManager": "pnpm@9.11.0",
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
], ],

View File

@ -1,6 +1,6 @@
{ {
"name": "ci-log", "name": "ci-log",
"version": "1.0.2", "version": "1.0.1",
"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,6 +1,5 @@
import * as core from "@actions/core" import * as core from "@actions/core"
import ciInfo from "ci-info" import { GITHUB_ACTIONS } 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.3", "version": "1.0.2",
"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,7 +1,6 @@
import { promises } from "fs" import { promises } from "fs"
import { exportVariable as ghExportVariable } from "@actions/core" import { exportVariable as ghExportVariable } from "@actions/core"
import ciInfo from "ci-info" import { GITHUB_ACTIONS } 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,8 +1,7 @@
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 ciInfo from "ci-info" import { GITHUB_ACTIONS } 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.2", "version": "2.0.0",
"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,11 +9,6 @@
"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,7 +1,6 @@
import { promises } from "fs" import { promises } from "fs"
import { execRoot } from "admina" import { execRoot } from "admina"
import ciInfo from "ci-info" import { GITHUB_ACTIONS } 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.2", "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",
@ -9,11 +9,6 @@
"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,5 +1,4 @@
import ciInfo from "ci-info" import { GITHUB_ACTIONS } 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,7 +1,6 @@
import path from "path" import path from "path"
import { fileURLToPath } from "url" import { fileURLToPath } from "url"
import ciInfo from "ci-info" import { GITHUB_ACTIONS } 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,7 +1,6 @@
import path, { join } from "path" import path, { join } from "path"
import { fileURLToPath } from "url" import { fileURLToPath } from "url"
import ciInfo from "ci-info" import { GITHUB_ACTIONS } 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,8 +2,7 @@ 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 ciInfo from "ci-info" import { GITHUB_ACTIONS } 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,8 +2,7 @@ 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 ciInfo from "ci-info" import { GITHUB_ACTIONS } 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,5 +1,4 @@
import ciInfo from "ci-info" import { GITHUB_ACTIONS } 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,5 +1,4 @@
import ciInfo from "ci-info" import { GITHUB_ACTIONS } 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,5 +1,4 @@
import ciInfo from "ci-info" import { GITHUB_ACTIONS } 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,8 +1,7 @@
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 ciInfo from "ci-info" import { GITHUB_ACTIONS } 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,8 +2,7 @@ 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 ciInfo from "ci-info" import { GITHUB_ACTIONS } 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,5 +1,4 @@
import ciInfo from "ci-info" import { GITHUB_ACTIONS } 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", "amd64_x86"] export const x86_64 = ["x64", "amd64", "x86_64", "win64", "64"]
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,8 +1,7 @@
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 ciInfo from "ci-info" import { GITHUB_ACTIONS } 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,7 +18,8 @@ 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.4", // https://github.com/Kitware/CMake/releases cmake: "3.30.3", // 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