mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-30 09:38:05 +08:00
Added unzip for darwin (#49)
* added unzip for darwin * add mac builds * added zip for darwin
This commit is contained in:
committed by
Danny McCormick
parent
eae6c87114
commit
35cd59e8d5
BIN
packages/tool-cache/__tests__/externals/zip-darwin
vendored
Executable file
BIN
packages/tool-cache/__tests__/externals/zip-darwin
vendored
Executable file
Binary file not shown.
@@ -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})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user