Skip to content

Commit

Permalink
Don't try to install gpg on macos, it is already installed
Browse files Browse the repository at this point in the history
all macos images come with gpg preinstalled, see:
https://github.com/actions/runner-images/tree/main/images/macos
for the list of all preinstalled packages.

Signed-off-by: Andrei Horodniceanu <[email protected]>
  • Loading branch information
the-horo committed Jul 14, 2024
1 parent 15a7258 commit 9c0785a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ export class Compiler implements ITool {
const archive = await tc.downloadTool(this.url);
if (this.sig) {
console.log("Verifying the download with GPG");
await gpg.install();
await gpg.verify(archive, this.sig);
}
let path = await utils.extract(this.url, archive);
Expand Down
7 changes: 0 additions & 7 deletions src/gpg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,3 @@ export async function verify(file_path: string, sig_url: string) {
sig_path, file_path ]
)
}

export async function install() {
// other platforms have gpg pre-installed
if (process.platform == "darwin") {
await exec.exec('brew', [ 'install', 'gnupg' ])
}
}

0 comments on commit 9c0785a

Please sign in to comment.