diff --git a/package-lock.json b/package-lock.json index b7cf0b0..99269cf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "setup-clojure", - "version": "12.1", + "version": "12.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "setup-clojure", - "version": "12.1", + "version": "12.2", "license": "MIT", "dependencies": { "@actions/cache": "^3.2.2", diff --git a/src/cljstyle.ts b/src/cljstyle.ts index ecaa387..843b91e 100644 --- a/src/cljstyle.ts +++ b/src/cljstyle.ts @@ -25,12 +25,14 @@ export async function getLatestCljstyle(githubAuth?: string): Promise { } export function getArtifactName(version: string): string { + const [major, minor] = version.split('.').map(n => parseInt(n)) + const archiSuffix = major > 0 || minor > 15 ? '_amd64' : '' const platform = os.platform() switch (platform) { case 'darwin': - return `cljstyle_${version}_macos.zip` + return `cljstyle_${version}_macos${archiSuffix}.zip` default: - return `cljstyle_${version}_linux.zip` + return `cljstyle_${version}_linux${archiSuffix}.zip` } }