mirror of https://github.com/aminya/setup-cpp
fix: remove deprecated setOutput
This commit is contained in:
parent
4e382d504c
commit
a1958c0408
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
|
@ -31,7 +31,7 @@
|
|||
"lint": "run-p --aggregate-output --continue-on-error lint.cspell lint.eslint lint.prettier lint.tsc",
|
||||
"lint.cspell": "cspell lint --no-progress --show-suggestions --cache --cache-location ./.cache/cspell/.cspellcache",
|
||||
"lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix",
|
||||
"lint.prettier": "prettier --write .",
|
||||
"lint.prettier": "prettier --list-different --write .",
|
||||
"lint.tsc": "tsc --noEmit",
|
||||
"pack.exe": "shx rm -rf ./dist/tsconfig.tsbuildinfo && ts-node --esm ./dev/scripts/pack-exe.ts",
|
||||
"prepare": "pnpm run -r build && pnpm run -w build",
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
import semverLte from "semver/functions/lte"
|
||||
import { isUrlOnline } from "is-url-online"
|
||||
import { getSpecificVersionAndUrl, getSpecificVersions, getVersions } from "../utils/setup/version"
|
||||
import { warning } from "ci-log"
|
||||
import { info, warning } from "ci-log"
|
||||
import { PackageInfo } from "../utils/setup/setupBin"
|
||||
import { setOutput } from "@actions/core"
|
||||
import { addExeExt } from "patha"
|
||||
import { extractExe, extractTarByExe } from "../utils/setup/extract"
|
||||
|
||||
|
@ -260,7 +259,7 @@ export async function getLLVMPackageInfo(
|
|||
_arch: string
|
||||
): Promise<PackageInfo> {
|
||||
const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, platform, version, getUrl)
|
||||
setOutput("llvm", specificVersion)
|
||||
info(`specific llvm version: ${specificVersion}`)
|
||||
return {
|
||||
url,
|
||||
extractedFolderName: "",
|
||||
|
|
Loading…
Reference in New Issue