fix: add make to the PATH on macos

This commit is contained in:
Amin Yahyaabadi 2022-01-30 18:25:54 -08:00
parent d7ccf0506b
commit 1e1a2c7082
3 changed files with 6 additions and 3 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
import { addPath } from "@actions/core"
import { setupAptPack } from "../utils/setup/setupAptPack" import { setupAptPack } from "../utils/setup/setupAptPack"
import { setupBrewPack } from "../utils/setup/setupBrewPack" import { setupBrewPack } from "../utils/setup/setupBrewPack"
import { setupChocoPack } from "../utils/setup/setupChocoPack" import { setupChocoPack } from "../utils/setup/setupChocoPack"
@ -9,7 +10,9 @@ export function setupMake(version: string, _setupDir: string, _arch: string) {
return setupChocoPack("make", version) return setupChocoPack("make", version)
} }
case "darwin": { case "darwin": {
return setupBrewPack("make", version) setupBrewPack("make", version)
addPath("/usr/local/opt/make/libexec/gnubin")
return { binDir: "/usr/local/opt/make/libexec/gnubin" }
} }
case "linux": { case "linux": {
return setupAptPack("make", version) return setupAptPack("make", version)