Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ words:
- aminya
- applellvm
- armv
- autoreconf
- bazel
- bazelisk
- binfmt
Expand All @@ -33,7 +34,6 @@ words:
- cmakeformat
- cmakelang
- cmakelint
- autoreconf
- cobertura
- copr
- CPATH
Expand Down Expand Up @@ -82,6 +82,7 @@ words:
- mdimporterdir
- memoizee
- mkdirp
- mlir
- msbuild
- msvc
- msvcrt
Expand Down
68 changes: 34 additions & 34 deletions dist/legacy/setup-cpp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/legacy/setup-cpp.js.map

Large diffs are not rendered by default.

118 changes: 59 additions & 59 deletions dist/modern/setup-cpp.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/modern/setup-cpp.mjs.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
pre-commit:
parallel: false
commands:
test.lint:
run: bun run test.lint
lint:
run: bun run lint
stage_fixed: true
build:
run: bun run build -- --no-color && git add ./dist
6 changes: 6 additions & 0 deletions src/autoreconf/autoreconf.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { join } from "path"
import { warning } from "ci-log"
import { addPath } from "envosman"
import { hasApk, installApkPack } from "setup-alpine"
import { hasAptGet, installAptPack } from "setup-apt"
Expand All @@ -11,6 +12,11 @@ import type { SetupOptions } from "../setup-options.js"
const packages = ["autoconf", "autoconf-archive", "automake", "libtool"] as const

export async function setupAutoreconf({ version }: Partial<Pick<SetupOptions, "version">> = {}) {
if (process.platform === "win32") {
warning("Autoreconf is not available on Windows. Skipping installation.")
return undefined
}

switch (process.platform) {
case "darwin": {
for (const name of packages) {
Expand Down
Loading