Skip to content

Commit f539f97

Browse files
fix: allow for aarch64 build (#960)
1 parent 6757614 commit f539f97

File tree

5 files changed

+22
-8
lines changed

5 files changed

+22
-8
lines changed

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ inputs:
6363
description: 'Specify a prefix on files listed in the network section of the Codecov report. Useful to help resolve path fixing'
6464
required: false
6565
os:
66-
description: 'Override the assumed OS. Options are alpine | linux | macos | windows.'
66+
description: 'Override the assumed OS. Options are aarch64 | alpine | linux | macos | windows.'
6767
required: false
6868
override_branch:
6969
description: 'Specify the branch name'

dist/index.js

+9-3
Large diffs are not rendered by default.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/helpers.test.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ test('getBaseUrl', () => {
3939
expect(PLATFORMS.map((platform) => {
4040
return getBaseUrl(platform, 'latest');
4141
})).toEqual([
42+
'https://uploader.codecov.io/latest/aarch64/codecov',
4243
'https://uploader.codecov.io/latest/alpine/codecov',
4344
'https://uploader.codecov.io/latest/linux/codecov',
4445
'https://uploader.codecov.io/latest/macos/codecov',
@@ -48,6 +49,7 @@ test('getBaseUrl', () => {
4849
expect(PLATFORMS.map((platform) => {
4950
return getBaseUrl(platform, 'v0.1.0_8880');
5051
})).toEqual([
52+
'https://uploader.codecov.io/v0.1.0_8880/aarch64/codecov',
5153
'https://uploader.codecov.io/v0.1.0_8880/alpine/codecov',
5254
'https://uploader.codecov.io/v0.1.0_8880/linux/codecov',
5355
'https://uploader.codecov.io/v0.1.0_8880/macos/codecov',
@@ -58,13 +60,13 @@ test('getBaseUrl', () => {
5860
test('isWindows', () => {
5961
expect(PLATFORMS.map((platform) => {
6062
return isWindows(platform);
61-
})).toEqual([false, false, false, true]);
63+
})).toEqual([false, false, false, false, true]);
6264
});
6365

6466
test('isValidPlatform', () => {
6567
expect(PLATFORMS.map((platform) => {
6668
return isValidPlatform(platform);
67-
})).toEqual([true, true, true, true]);
69+
})).toEqual([true, true, true, true, true]);
6870

6971
expect(isValidPlatform('fakeos')).toBeFalsy();
7072
});

src/helpers.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import * as core from '@actions/core';
22

3-
const PLATFORMS = ['alpine', 'linux', 'macos', 'windows'];
3+
const PLATFORMS = [
4+
'aarch64',
5+
'alpine',
6+
'linux',
7+
'macos',
8+
'windows',
9+
];
410

511
const setFailure = (message: string, failCi: boolean): void => {
612
failCi ? core.setFailed(message) : core.warning(message);

0 commit comments

Comments
 (0)