Skip to content

Commit

Permalink
fix(core): support ARM 64-bit environments
Browse files Browse the repository at this point in the history
Fixes #663
  • Loading branch information
paambaati committed Apr 20, 2023
1 parent 0a6ab7b commit 99e22b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.ts
@@ -1,4 +1,4 @@
import { platform } from 'os';
import { platform, arch } from 'os';
import { chdir } from 'process';
import { unlinkSync } from 'fs';
import { debug, error, setFailed, warning, info } from '@actions/core';
Expand All @@ -13,8 +13,9 @@ import {
} from './utils';
import type { ExecOptions } from '@actions/exec/lib/interfaces';

// REFER: https://docs.codeclimate.com/docs/configuring-test-coverage#locations-of-pre-built-binaries
/** Canonical download URL for the official CodeClimate reporter. */
export const DOWNLOAD_URL = `https://codeclimate.com/downloads/test-reporter/test-reporter-latest-${platform()}-amd64`;
export const DOWNLOAD_URL = `https://codeclimate.com/downloads/test-reporter/test-reporter-latest-${platform()}-${arch() === 'arm64' ? 'arm64' : 'amd64'}`;
/** Local file name of the CodeClimate reporter. */
export const EXECUTABLE = './cc-reporter';
export const CODECLIMATE_GPG_PUBLIC_KEY_ID =
Expand Down

0 comments on commit 99e22b3

Please sign in to comment.