mirror of
https://github.com/aminya/setup-cpp
synced 2024-11-30 21:22:30 +08:00
Compare commits
14 Commits
0ad9460a52
...
3c6f758b8a
Author | SHA1 | Date | |
---|---|---|---|
|
3c6f758b8a | ||
|
5dd9d98206 | ||
|
e0e749b984 | ||
|
ac7fe2df3f | ||
|
780290387b | ||
|
905cc44d65 | ||
|
50b145e467 | ||
|
094e4c470d | ||
|
3f505ba05e | ||
|
24f9b03dc4 | ||
|
d485b24c12 | ||
|
9935084e22 | ||
|
2a67ff955e | ||
|
76f06a9dda |
54
.github/workflows/CI.yml
vendored
54
.github/workflows/CI.yml
vendored
@ -20,16 +20,11 @@ jobs:
|
||||
Build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: Build
|
||||
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-22.04
|
||||
node:
|
||||
- 22.6.0
|
||||
pnpm:
|
||||
- 9.11.0
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@ -38,12 +33,10 @@ jobs:
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
node-version-file: "./.nvmrc"
|
||||
|
||||
- name: Setup Pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: ${{ matrix.pnpm }}
|
||||
uses: pnpm/action-setup@v4
|
||||
|
||||
- name: Install
|
||||
run: |
|
||||
@ -84,7 +77,6 @@ jobs:
|
||||
BuildExecutable:
|
||||
name: Build-Executable-${{ matrix.os }}
|
||||
needs: [Build]
|
||||
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@ -94,10 +86,6 @@ jobs:
|
||||
- ubuntu-24.04
|
||||
- macos-13
|
||||
- macos-14 # arm64
|
||||
node:
|
||||
- 22
|
||||
pnpm:
|
||||
- 9.11.0
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@ -109,12 +97,10 @@ jobs:
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
node-version-file: "./.nvmrc"
|
||||
|
||||
- name: Setup Pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: ${{ matrix.pnpm }}
|
||||
uses: pnpm/action-setup@v4
|
||||
|
||||
- name: Cache node_modules
|
||||
uses: actions/cache@v4
|
||||
@ -123,7 +109,7 @@ jobs:
|
||||
~/.pnpm-store
|
||||
D:\.pnpm-store
|
||||
./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: |
|
||||
"setupcpp-node_modules-cache-OS:${{ matrix.os }}-"
|
||||
|
||||
@ -146,7 +132,6 @@ jobs:
|
||||
|
||||
Test:
|
||||
name: Test-${{ matrix.os }}
|
||||
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
|
||||
needs: [Build]
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
@ -161,10 +146,6 @@ jobs:
|
||||
- macos-14
|
||||
- macos-13
|
||||
- macos-12
|
||||
node:
|
||||
- 22
|
||||
pnpm:
|
||||
- 9.11.0
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@ -178,12 +159,10 @@ jobs:
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
node-version-file: "./.nvmrc"
|
||||
|
||||
- name: Setup Pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: ${{ matrix.pnpm }}
|
||||
uses: pnpm/action-setup@v4
|
||||
|
||||
- name: Cache node_modules
|
||||
uses: actions/cache@v4
|
||||
@ -192,7 +171,7 @@ jobs:
|
||||
~/.pnpm-store
|
||||
D:\.pnpm-store
|
||||
./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: |
|
||||
"setupcpp-node_modules-cache-OS:${{ matrix.os }}-"
|
||||
|
||||
@ -234,7 +213,6 @@ jobs:
|
||||
|
||||
Docker:
|
||||
name: Docker-${{ matrix.container.image }}
|
||||
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
|
||||
needs: [Build]
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
@ -242,17 +220,13 @@ jobs:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-24.04
|
||||
node:
|
||||
- 22
|
||||
pnpm:
|
||||
- 9.11.0
|
||||
container:
|
||||
- { 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.43.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.43.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.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.44.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.44.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.44.0" }
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -26,6 +26,9 @@
|
||||
"[yaml]": {
|
||||
"editor.defaultFormatter": "dprint.dprint"
|
||||
},
|
||||
"[github-actions-workflow]": {
|
||||
"editor.defaultFormatter": "dprint.dprint"
|
||||
},
|
||||
"cSpell.advanced.feature.useReferenceProviderWithRename": true,
|
||||
"cSpell.checkOnlyEnabledFileTypes": false,
|
||||
"cSpell.numSuggestions": 3,
|
||||
|
38
README.md
38
README.md
@ -57,22 +57,22 @@ NOTE: setup-cpp requires Nodejs 12 or higher. If Nodejs shipped with your distri
|
||||
|
||||
#### 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
|
||||
# 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
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
```
|
||||
|
||||
@ -131,13 +131,19 @@ jobs:
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
./build/
|
||||
~/vcpkg
|
||||
./build/vcpkg_installed
|
||||
${{ env.HOME }}/.cache/vcpkg/archives
|
||||
~/.cache/vcpkg/archives
|
||||
${{ env.LOCALAPPDATA }}/vcpkg/archives
|
||||
${{ env.APPDATA }}/vcpkg/archives
|
||||
${{ env.XDG_CACHE_HOME }}/vcpkg/archives
|
||||
${{ env.LOCALAPPDATA }}\vcpkg\archives
|
||||
${{ env.APPDATA }}\vcpkg\archives
|
||||
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ env.BUILD_TYPE }}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}}
|
||||
~/.cache/ccache
|
||||
~/.ccache
|
||||
~/.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: |
|
||||
${{ 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.
|
||||
|
||||
```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
|
||||
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
|
||||
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
|
||||
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>`.
|
||||
@ -192,7 +198,7 @@ RUN apt-get update -qq && \
|
||||
# install nodejs
|
||||
apt-get install -y --no-install-recommends nodejs npm && \
|
||||
# install setup-cpp
|
||||
npm install -g setup-cpp@v0.43.0 && \
|
||||
npm install -g setup-cpp@v0.44.0 && \
|
||||
# install the compiler and tools
|
||||
setup-cpp \
|
||||
--nala true \
|
||||
@ -301,7 +307,7 @@ stages:
|
||||
apt-get install -y --no-install-recommends nodejs npm
|
||||
|
||||
# install setup-cpp
|
||||
npm install -g setup-cpp@v0.43.0
|
||||
npm install -g setup-cpp@v0.44.0
|
||||
|
||||
# install the compiler and tools
|
||||
./setup-cpp-x64-linux --compiler $compiler --cmake true --ninja true --ccache true --vcpkg true
|
||||
|
@ -81,6 +81,7 @@ words:
|
||||
- noreply
|
||||
- nothrow
|
||||
- npmrc
|
||||
- nvmrc
|
||||
- Opencppcoverage
|
||||
- OSSDK
|
||||
- papm
|
||||
|
@ -6,7 +6,7 @@ RUN pacman -Syuu --noconfirm && \
|
||||
# install nodejs
|
||||
pacman -S --noconfirm --needed nodejs npm && \
|
||||
# install setup-cpp
|
||||
npm install -g setup-cpp@v0.43.0 && \
|
||||
npm install -g setup-cpp@v0.44.0 && \
|
||||
# install the compiler and tools
|
||||
setup-cpp \
|
||||
--compiler llvm \
|
||||
|
@ -6,7 +6,7 @@ RUN pacman -Syuu --noconfirm && \
|
||||
# install nodejs
|
||||
pacman -S --noconfirm --needed nodejs npm && \
|
||||
# install setup-cpp
|
||||
npm install -g setup-cpp@v0.43.0 && \
|
||||
npm install -g setup-cpp@v0.44.0 && \
|
||||
# install the compiler and tools
|
||||
setup-cpp \
|
||||
--compiler mingw \
|
||||
|
@ -4,7 +4,7 @@ FROM fedora:40 AS setup-cpp-fedora
|
||||
# install nodejs
|
||||
RUN dnf -y install nodejs npm && \
|
||||
# install setup-cpp
|
||||
npm install -g setup-cpp@v0.43.0 && \
|
||||
npm install -g setup-cpp@v0.44.0 && \
|
||||
# install the compiler and tools
|
||||
setup-cpp \
|
||||
--compiler llvm \
|
||||
|
@ -4,7 +4,7 @@ FROM fedora:40 AS setup-cpp-fedora-mingw
|
||||
# install nodejs
|
||||
RUN dnf -y install nodejs npm && \
|
||||
# install setup-cpp
|
||||
npm install -g setup-cpp@v0.43.0 && \
|
||||
npm install -g setup-cpp@v0.44.0 && \
|
||||
# install the compiler and tools
|
||||
setup-cpp \
|
||||
--compiler mingw \
|
||||
|
@ -11,7 +11,7 @@ RUN apt-get update -qq && \
|
||||
apt-get update -qq && \
|
||||
apt-get install -y --no-install-recommends nodejs && \
|
||||
# install setup-cpp
|
||||
npm install -g setup-cpp@v0.43.0 && \
|
||||
npm install -g setup-cpp@v0.44.0 && \
|
||||
# install the compiler and tools
|
||||
setup-cpp \
|
||||
--nala true \
|
||||
|
@ -5,7 +5,7 @@ RUN apt-get update -qq && \
|
||||
# install nodejs
|
||||
apt-get install -y --no-install-recommends nodejs npm && \
|
||||
# install setup-cpp
|
||||
npm install -g setup-cpp@v0.43.0 && \
|
||||
npm install -g setup-cpp@v0.44.0 && \
|
||||
# install the compiler and tools
|
||||
setup-cpp \
|
||||
--nala true \
|
||||
|
@ -5,7 +5,7 @@ RUN apt-get update -qq && \
|
||||
# install nodejs
|
||||
apt-get install -y --no-install-recommends nodejs npm && \
|
||||
# install setup-cpp
|
||||
npm install -g setup-cpp@v0.43.0 && \
|
||||
npm install -g setup-cpp@v0.44.0 && \
|
||||
# install the compiler and tools
|
||||
setup-cpp \
|
||||
--nala true \
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
dist/legacy/setup-cpp.js
vendored
2
dist/legacy/setup-cpp.js
vendored
File diff suppressed because one or more lines are too long
2
dist/legacy/setup-cpp.js.map
vendored
2
dist/legacy/setup-cpp.js.map
vendored
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
2
dist/modern/setup-cpp.mjs
vendored
2
dist/modern/setup-cpp.mjs
vendored
File diff suppressed because one or more lines are too long
2
dist/modern/setup-cpp.mjs.map
vendored
2
dist/modern/setup-cpp.mjs.map
vendored
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
{
|
||||
"name": "setup-cpp",
|
||||
"version": "0.43.0"
|
||||
"version": "0.44.0"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "setup-cpp",
|
||||
"version": "0.43.0",
|
||||
"version": "0.44.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",
|
||||
@ -187,7 +187,7 @@
|
||||
"node": ">=12.x",
|
||||
"pnpm": "^9"
|
||||
},
|
||||
"packageManager": "pnpm@9.11.0",
|
||||
"packageManager": "pnpm@9.12.2",
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ci-log",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"description": "Colorful logging and print for any environment including GitHub Actions",
|
||||
"repository": "https://github.com/aminya/setup-cpp",
|
||||
"homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/ci-log",
|
||||
|
@ -1,5 +1,6 @@
|
||||
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) {
|
||||
return GITHUB_ACTIONS ? core.error(err) : console.log(`\x1b[31m${err}\x1b[0m`)
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "envosman",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"description": "Manage environment variables, PATH, and rc files",
|
||||
"repository": "https://github.com/aminya/setup-cpp",
|
||||
"homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/envosman",
|
||||
@ -18,7 +18,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.1",
|
||||
"@types/node": "22.5.5",
|
||||
"@types/node": "22.8.1",
|
||||
"admina": "^1.0.1",
|
||||
"ci-info": "^4.0.0",
|
||||
"escape-path-with-spaces": "^1.0.2",
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { promises } from "fs"
|
||||
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 { execPowershell } from "exec-powershell"
|
||||
import { defaultRcPath, sourceRCInRc } from "./rc-file.js"
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { promises } from "fs"
|
||||
import { delimiter } from "path"
|
||||
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 { execPowershell } from "exec-powershell"
|
||||
import { defaultRcPath, sourceRCInRc } from "./rc-file.js"
|
||||
|
@ -17,8 +17,8 @@
|
||||
"prepublishOnly": "pnpm run build"
|
||||
},
|
||||
"dependencies": {
|
||||
"execa": "7.2.0",
|
||||
"which": "^4.0.0",
|
||||
"execa": "9.4.1",
|
||||
"which": "^5.0.0",
|
||||
"@types/node": "^22.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "setup-apt",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.2",
|
||||
"description": "Setup apt packages and repositories in Debian/Ubuntu-based distributions",
|
||||
"repository": "https://github.com/aminya/setup-cpp",
|
||||
"homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/setup-apt",
|
||||
@ -9,6 +9,11 @@
|
||||
"main": "./dist/index.js",
|
||||
"source": "./src/index.ts",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
"tsconfig.json"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --pretty",
|
||||
"dev": "tsc --watch --pretty",
|
||||
@ -17,14 +22,14 @@
|
||||
"prepublishOnly": "pnpm run build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/node": "22.5.5",
|
||||
"@types/node": "22.8.1",
|
||||
"admina": "^1.0.1",
|
||||
"ci-info": "^4.0.0",
|
||||
"path-exists": "^5.0.0",
|
||||
"ci-log": "workspace:*",
|
||||
"envosman": "workspace:*",
|
||||
"which": "4.0.0",
|
||||
"execa": "7.2.0",
|
||||
"which": "5.0.0",
|
||||
"execa": "9.4.1",
|
||||
"escape-string-regexp": "^5.0.0",
|
||||
"node-downloader-helper": "2.1.9",
|
||||
"memoizee": "^0.4.17"
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { promises } from "fs"
|
||||
import { execRoot } from "admina"
|
||||
import { GITHUB_ACTIONS } from "ci-info"
|
||||
import ciInfo from "ci-info"
|
||||
const { GITHUB_ACTIONS } = ciInfo
|
||||
import { sourceRC } from "envosman"
|
||||
import type { RcOptions } from "envosman/dist/rc-file.js"
|
||||
const { appendFile } = promises
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "setup-brew",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"description": "Setup brew and brew packages",
|
||||
"repository": "https://github.com/aminya/setup-cpp",
|
||||
"homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/setup-brew",
|
||||
@ -9,6 +9,11 @@
|
||||
"main": "./dist/index.js",
|
||||
"source": "./src/index.ts",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
"tsconfig.json"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --pretty",
|
||||
"dev": "tsc --watch --pretty",
|
||||
@ -18,11 +23,11 @@
|
||||
"test": "jest --coverage"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/node": "22.5.5",
|
||||
"@types/node": "22.8.1",
|
||||
"ci-log": "workspace:*",
|
||||
"envosman": "workspace:*",
|
||||
"which": "4.0.0",
|
||||
"execa": "7.2.0",
|
||||
"which": "5.0.0",
|
||||
"execa": "9.4.1",
|
||||
"setup-apt": "workspace:*",
|
||||
"node-downloader-helper": "2.1.9"
|
||||
},
|
||||
|
368
pnpm-lock.yaml
368
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -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 { getVersion } from "../../versions/versions.js"
|
||||
import { setupCmake } from "../cmake.js"
|
||||
|
@ -1,6 +1,7 @@
|
||||
import path from "path"
|
||||
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 { addEnv } from "envosman"
|
||||
import { execa } from "execa"
|
||||
|
@ -1,6 +1,7 @@
|
||||
import path, { join } from "path"
|
||||
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 { addEnv, addPath } from "envosman"
|
||||
import { pathExists } from "path-exists"
|
||||
|
@ -2,7 +2,8 @@ import { tmpdir } from "os"
|
||||
import path, { delimiter, join } from "path"
|
||||
import { fileURLToPath } from "url"
|
||||
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 { addEnv } from "envosman"
|
||||
import memoize from "memoizee"
|
||||
|
@ -2,7 +2,8 @@ import path, { join } from "path"
|
||||
import { fileURLToPath } from "url"
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @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 { findVcvarsall, vsversion_to_versionnumber } from "msvc-dev-cmd/lib.js"
|
||||
import { pathExists } from "path-exists"
|
||||
|
@ -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 { getVersion } from "../../versions/versions.js"
|
||||
import { setupNinja } from "../ninja.js"
|
||||
|
@ -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 { getVersion } from "../../versions/versions.js"
|
||||
import { setupPowershell } from "../powershell.js"
|
||||
|
@ -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 { ubuntuVersion } from "../../utils/env/ubuntu_version.js"
|
||||
import { cleanupTmpDir, setupTmpDir, testBin } from "../../utils/tests/test-helpers.js"
|
||||
|
@ -1,7 +1,8 @@
|
||||
import path, { join } from "path"
|
||||
import { fileURLToPath } from "url"
|
||||
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 { pathExists } from "path-exists"
|
||||
import { findPyPyVersion } from "setup-python/src/find-pypy.js"
|
||||
|
@ -2,7 +2,8 @@ import assert from "assert"
|
||||
import { homedir } from "os"
|
||||
import { dirname, join, parse as pathParse } from "path"
|
||||
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 { addPath } from "envosman"
|
||||
import { execa } from "execa"
|
||||
|
@ -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 { getVersion } from "../../versions/versions.js"
|
||||
import { setupTask } from "../task.js"
|
||||
|
2
src/utils/env/arch.ts
vendored
2
src/utils/env/arch.ts
vendored
@ -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 arm64 = ["aarch64", "arm64", "woa64", "arm"]
|
||||
export const armv7 = ["armv7", "armv7a"]
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { tmpdir } from "os"
|
||||
import { basename, join } from "path"
|
||||
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 { addPath } from "envosman"
|
||||
import { chmod } from "fs/promises"
|
||||
|
@ -18,8 +18,7 @@ export const DefaultVersions: Record<string, string | undefined> = {
|
||||
"clang-format": defaultLLVM,
|
||||
clangformat: defaultLLVM,
|
||||
ninja: "1.12.1", // https://github.com/ninja-build/ninja/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
|
||||
cmake: "3.30.4", // https://github.com/Kitware/CMake/releases
|
||||
meson: "1.5.2", // https://github.com/mesonbuild/meson/releases
|
||||
kcov: "42", // https://github.com/SimonKagstrom/kcov/releases
|
||||
task: "3.39.2", // https://github.com/go-task/task/releases
|
||||
|
Loading…
Reference in New Issue
Block a user