Added unzip for darwin (#49)

* added unzip for darwin

* add mac builds

* added zip for darwin
This commit is contained in:
Alif Rachmawadi authored and Danny McCormick committed 2019-08-13 12:39:01 -04:00
1 parent b48642b100
commit d9d4ce38c9
4 files changed
+22 -3

No files matched your search

BIN
View File
Binary file not shown.
+6 -2
View File
@@ -231,7 +231,9 @@ describe('@actions/tool-cache', function() {
]
await exec.exec(`"${powershellPath}"`, args)
} else {
const zipPath: string = path.join(__dirname, 'externals', 'zip')
const zipBin: string =
process.platform === 'darwin' ? 'zip-darwin' : 'zip'
const zipPath: string = path.join(__dirname, 'externals', zipBin)
await exec.exec(`"${zipPath}`, [zipFile, '-r', '.'], {cwd: stagingDir})
}
@@ -282,7 +284,9 @@ describe('@actions/tool-cache', function() {
]
await exec.exec(`"${powershellPath}"`, args)
} else {
const zipPath = path.join(__dirname, 'externals', 'zip')
const zipBin: string =
process.platform === 'darwin' ? 'zip-darwin' : 'zip'
const zipPath = path.join(__dirname, 'externals', zipBin)
await exec.exec(zipPath, [zipFile, '-r', '.'], {cwd: stagingDir})
}