mirror of https://github.com/aminya/setup-cpp
fix: add message for gcc-multilib
This commit is contained in:
parent
2c79ba1c6a
commit
6ef4a34ada
|
@ -1,4 +1,4 @@
|
||||||
import { addPath, exportVariable } from "@actions/core"
|
import { addPath, exportVariable, info } from "@actions/core"
|
||||||
import { existsSync } from "fs"
|
import { existsSync } from "fs"
|
||||||
import { setupAptPack } from "../utils/setup/setupAptPack"
|
import { setupAptPack } from "../utils/setup/setupAptPack"
|
||||||
import { setupBrewPack } from "../utils/setup/setupBrewPack"
|
import { setupBrewPack } from "../utils/setup/setupBrewPack"
|
||||||
|
@ -31,6 +31,7 @@ export async function setupGcc(version: string, _setupCppDir: string, arch: stri
|
||||||
if (arch === "x64") {
|
if (arch === "x64") {
|
||||||
binDir = (await setupAptPack("g++", version, "ppa:ubuntu-toolchain-r/test")).binDir
|
binDir = (await setupAptPack("g++", version, "ppa:ubuntu-toolchain-r/test")).binDir
|
||||||
} else {
|
} else {
|
||||||
|
info(`Install g++-multilib because gcc for ${arch} was requested`)
|
||||||
binDir = (await setupAptPack("g++-multilib", version, "ppa:ubuntu-toolchain-r/test")).binDir
|
binDir = (await setupAptPack("g++-multilib", version, "ppa:ubuntu-toolchain-r/test")).binDir
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue