Skip to content

Commit 2d48e72

Browse files
committed
feat: support kcov 41 and default to it
1 parent 5e5a8d0 commit 2d48e72

File tree

6 files changed

+17
-5
lines changed

6 files changed

+17
-5
lines changed

dist/node12/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node12/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node16/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node16/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/kcov/__tests__/kcov.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ describe("setup-Kcov", () => {
1111
return
1212
}
1313

14+
it("should build and setup kcov-41", async () => {
15+
const directory = await setupTmpDir("kcov-v41")
16+
const { binDir } = (await setupKcov("41", directory, "")) as InstallationInfo
17+
// the prebuild binary only works on ubuntu 20.04
18+
try {
19+
await testBin("kcov", ["--version"], binDir)
20+
} catch (err) {
21+
info((err as Error).message)
22+
}
23+
await cleanupTmpDir("kcov-v41")
24+
})
25+
1426
it("should setup Kcov v40 via downloading the binaries", async () => {
1527
const directory = await setupTmpDir("kcov-v40")
1628
const { binDir } = (await setupKcov("40-binary", directory, "")) as InstallationInfo

src/versions/default_versions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const DefaultVersions: Record<string, string> = {
2424
gcovr: "5.2", // https://pypi.org/project/gcovr/
2525
conan: "1.60.0", // https://github.com/conan-io/conan/releases
2626
meson: "1.0.2", // https://github.com/mesonbuild/meson/releases
27-
kcov: "40", // https://github.com/SimonKagstrom/kcov/releases
27+
kcov: "41", // https://github.com/SimonKagstrom/kcov/releases
2828
task: "3.25.0", // https://github.com/go-task/task/releases
2929
doxygen: isArch() ? "1.9.6-1" : "1.9.7", // https://www.doxygen.nl/download.html // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=doxygen // https://formulae.brew.sh/formula/doxygen // https://archlinux.org/packages/extra/x86_64/doxygen/
3030
gcc: isArch() ? "13.1.1-1" : "13", // https://github.com/brechtsanders/winlibs_mingw/releases and // https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=gcc

0 commit comments

Comments
 (0)