mirror of
https://github.com/actions/toolkit
synced 2025-05-11 09:32:58 +00:00
Added unzip for darwin (#49)
* added unzip for darwin * add mac builds * added zip for darwin
This commit is contained in:
parent
eae6c87114
commit
35cd59e8d5
5 changed files with 45 additions and 3 deletions
|
@ -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})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue