|
1 | 1 | #!/usr/bin/env node
|
2 | 2 | /* eslint-disable node/shebang */
|
3 | 3 |
|
4 |
| -import { getInput, endGroup, startGroup, notice } from "@actions/core" |
| 4 | +import { endGroup, getInput, notice, startGroup } from "@actions/core" |
| 5 | +import ciDetect from "@npmcli/ci-detect" |
| 6 | +import { error, info, success, warning } from "ci-log" |
| 7 | +import mri from "mri" |
| 8 | +import * as numerous from "numerous" |
| 9 | +import numerousLocale from "numerous/locales/en.js" |
| 10 | +import { join } from "patha" |
| 11 | +import semverValid from "semver/functions/valid" |
| 12 | +import * as timeDelta from "time-delta" |
| 13 | +import timeDeltaLocale from "time-delta/locales/en.js" |
| 14 | +import { untildifyUser } from "untildify-user" |
| 15 | + |
| 16 | +import { setupBazel } from "./bazel/bazel" |
5 | 17 | import { setupBrew } from "./brew/brew"
|
6 | 18 | import { setupCcache } from "./ccache/ccache"
|
7 |
| -import { setupMake } from "./make/make" |
8 |
| -import { setupTask } from "./task/task" |
9 | 19 | import { setupChocolatey } from "./chocolatey/chocolatey"
|
10 | 20 | import { setupCmake } from "./cmake/cmake"
|
11 | 21 | import { setupConan } from "./conan/conan"
|
12 | 22 | import { setupCppcheck } from "./cppcheck/cppcheck"
|
13 | 23 | import { setupDoxygen } from "./doxygen/doxygen"
|
| 24 | +import { setupGcc } from "./gcc/gcc" |
14 | 25 | import { activateGcovGCC, activateGcovLLVM, setupGcovr } from "./gcovr/gcovr"
|
15 |
| -import { setupLLVM, setupClangTools } from "./llvm/llvm" |
| 26 | +import { setupGraphviz } from "./graphviz/graphviz" |
| 27 | +import { setupKcov } from "./kcov/kcov" |
| 28 | +import { setupClangTools, setupLLVM } from "./llvm/llvm" |
| 29 | +import { setupMake } from "./make/make" |
16 | 30 | import { setupMeson } from "./meson/meson"
|
17 | 31 | import { setupMSVC } from "./msvc/msvc"
|
| 32 | +import { setupNala } from "./nala/nala" |
18 | 33 | import { setupNinja } from "./ninja/ninja"
|
19 | 34 | import { setupOpencppcoverage } from "./opencppcoverage/opencppcoverage"
|
| 35 | +import { setupPowershell } from "./powershell/powershell" |
20 | 36 | import { setupPython } from "./python/python"
|
21 |
| -import mri from "mri" |
22 |
| -import { untildifyUser } from "untildify-user" |
23 |
| -import ciDetect from "@npmcli/ci-detect" |
24 |
| -import * as timeDelta from "time-delta" |
25 |
| -// eslint-disable-next-line @typescript-eslint/ban-ts-comment |
26 |
| -// @ts-ignore |
27 |
| -import timeDeltaLocale from "time-delta/locales/en.js" |
28 |
| -// eslint-disable-next-line @typescript-eslint/ban-ts-comment |
29 |
| -// @ts-ignore |
30 |
| -import * as numerous from "numerous" |
31 |
| -// eslint-disable-next-line @typescript-eslint/ban-ts-comment |
32 |
| -// @ts-ignore |
33 |
| -import numerousLocale from "numerous/locales/en.js" |
| 37 | +import { setupSccache } from "./sccache/sccache" |
| 38 | +import { setupSevenZip } from "./sevenzip/sevenzip" |
| 39 | +import { setupTask } from "./task/task" |
| 40 | +import { addEnv, finalizeCpprc } from "./utils/env/addEnv" |
| 41 | +import { isArch } from "./utils/env/isArch" |
34 | 42 | import { ubuntuVersion } from "./utils/env/ubuntu_version"
|
35 |
| - |
36 |
| -import semverValid from "semver/functions/valid" |
37 |
| -import { getVersion, syncVersions } from "./versions/versions" |
38 |
| -import { setupGcc } from "./gcc/gcc" |
39 | 43 | import { InstallationInfo } from "./utils/setup/setupBin"
|
40 |
| -import { error, info, success, warning } from "ci-log" |
| 44 | +import { setupPacmanPack } from "./utils/setup/setupPacmanPack" |
41 | 45 | import { setupVcpkg } from "./vcpkg/vcpkg"
|
42 |
| -import { join } from "patha" |
43 | 46 | import { setupVCVarsall } from "./vcvarsall/vcvarsall"
|
44 |
| -import { setupKcov } from "./kcov/kcov" |
45 |
| -import { addEnv, finalizeCpprc } from "./utils/env/addEnv" |
46 |
| -import { setupSevenZip } from "./sevenzip/sevenzip" |
47 |
| -import { setupGraphviz } from "./graphviz/graphviz" |
48 |
| -import { setupNala } from "./nala/nala" |
49 |
| -import { setupBazel } from "./bazel/bazel" |
50 |
| -import { setupPowershell } from "./powershell/powershell" |
51 |
| -import { isArch } from "./utils/env/isArch" |
52 |
| -import { setupPacmanPack } from "./utils/setup/setupPacmanPack" |
53 |
| -import { setupSccache } from "./sccache/sccache" |
| 47 | +import { getVersion, syncVersions } from "./versions/versions" |
54 | 48 |
|
55 | 49 | /** The setup functions */
|
56 | 50 | const setups = {
|
@@ -119,7 +113,7 @@ export async function main(args: string[]): Promise<number> {
|
119 | 113 |
|
120 | 114 | const timeFormatter = timeDelta.create({ autoloadLocales: true })
|
121 | 115 | timeDelta.addLocale(timeDeltaLocale as timeDelta.Locale)
|
122 |
| - numerous.addLocale(numerousLocale) |
| 116 | + numerous.addLocale(numerousLocale as numerous.Locale) |
123 | 117 | let time1: number
|
124 | 118 | let time2: number
|
125 | 119 |
|
|
0 commit comments