mirror of https://github.com/aminya/setup-cpp
fix: do not care about the case of the inputs
This commit is contained in:
parent
ea280dfd67
commit
b4cb25de20
|
@ -24,6 +24,6 @@ The package will be usable from any environment (locally, GitHub Actions, etc).
|
||||||
- [x] setup cppcheck
|
- [x] setup cppcheck
|
||||||
- [x] setup doxygen
|
- [x] setup doxygen
|
||||||
- [x] setup ccache
|
- [x] setup ccache
|
||||||
|
- [x] setup OpenCppCoverage
|
||||||
- [ ] setup gcc/mingw
|
- [ ] setup gcc/mingw
|
||||||
- [ ] setup OpenCppCoverage
|
|
||||||
- [ ] setup vcpkg
|
- [ ] setup vcpkg
|
||||||
|
|
|
@ -15,7 +15,7 @@ import { setupOpencppcoverage } from "./opencppcoverage/opencppcoverage"
|
||||||
import { setupPython } from "./python/python"
|
import { setupPython } from "./python/python"
|
||||||
|
|
||||||
function maybeGetInput(key: string) {
|
function maybeGetInput(key: string) {
|
||||||
const value = core.getInput(key)
|
const value = core.getInput(key.toLowerCase())
|
||||||
if (value !== "false" && value !== "") {
|
if (value !== "false" && value !== "") {
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ export async function main(): Promise<number> {
|
||||||
// setup opencppCoverage
|
// setup opencppCoverage
|
||||||
const opencppCoverageVersion = maybeGetInput("opencppcoverage")
|
const opencppCoverageVersion = maybeGetInput("opencppcoverage")
|
||||||
if (opencppCoverageVersion !== undefined) {
|
if (opencppCoverageVersion !== undefined) {
|
||||||
await setupOpencppcoverage(gcovrVersion)
|
await setupOpencppcoverage(opencppCoverageVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
// setup llvm
|
// setup llvm
|
||||||
|
|
Loading…
Reference in New Issue