mirror of https://github.com/aminya/setup-cpp
fix: add keys to keyserver for installing gcc
This commit is contained in:
parent
2d754debe8
commit
76832b81a5
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -43,13 +43,7 @@ export async function setupGcc(version: string, _setupDir: string, arch: string)
|
||||||
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe",
|
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe",
|
||||||
"ppa:ubuntu-toolchain-r/test",
|
"ppa:ubuntu-toolchain-r/test",
|
||||||
])
|
])
|
||||||
binDir = (
|
binDir = (await setupAptPack("g++", version, [])).binDir
|
||||||
await setupAptPack("g++", version, [
|
|
||||||
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial main",
|
|
||||||
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe",
|
|
||||||
"ppa:ubuntu-toolchain-r/test",
|
|
||||||
])
|
|
||||||
).binDir
|
|
||||||
} else {
|
} else {
|
||||||
info(`Install g++-multilib because gcc for ${arch} was requested`)
|
info(`Install g++-multilib because gcc for ${arch} was requested`)
|
||||||
await setupAptPack("gcc-multilib", version, [
|
await setupAptPack("gcc-multilib", version, [
|
||||||
|
@ -57,13 +51,7 @@ export async function setupGcc(version: string, _setupDir: string, arch: string)
|
||||||
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe",
|
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe",
|
||||||
"ppa:ubuntu-toolchain-r/test",
|
"ppa:ubuntu-toolchain-r/test",
|
||||||
])
|
])
|
||||||
binDir = (
|
binDir = (await setupAptPack("g++-multilib", version, [])).binDir
|
||||||
await setupAptPack("g++-multilib", version, [
|
|
||||||
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial main",
|
|
||||||
"deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe",
|
|
||||||
"ppa:ubuntu-toolchain-r/test",
|
|
||||||
])
|
|
||||||
).binDir
|
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,6 +37,9 @@ export async function setupAptPack(
|
||||||
"ca-certificates",
|
"ca-certificates",
|
||||||
"gnupg",
|
"gnupg",
|
||||||
])
|
])
|
||||||
|
await execSudo("apt-key", ["adv", "--keyserver", "keyserver.ubuntu.com", "--recv-keys", "3B4FE6ACC0B21F32"])
|
||||||
|
await execSudo("apt-key", ["adv", "--keyserver", "keyserver.ubuntu.com", "--recv-keys", "40976EAF437D05B5"])
|
||||||
|
await execSudo("apt-key", ["adv", "--keyserver", "keyserver.ubuntu.com", "--recv-keys", "1E9377A2BA9EF27F"])
|
||||||
didInit = true
|
didInit = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue