Skip to content

Commit 648a8eb

Browse files
authored
Explicitly set auto-detect as default for platform (#240)
1 parent 773b6d8 commit 648a8eb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This action's step needs to run after your test suite has outputted a coverage r
3434
| `measure` | _optional_ | Default: `false`. Set to `true` to enable time measurement logging. |
3535
| `fail-on-error` | _optional_ | Default: `true`. Set to `false` to avoid CI failure when upload fails due to any errors. |
3636
| `coverage-reporter-version` | _optional_ | Default: `latest`. Version of coverage-reporter to use. Make sure to prefix the version number with 'v'. For example: v0.6.9. Not available currently on macOS. |
37-
| `coverage-reporter-platform` | _optional_ | Default: `x86_64`. Platform of coverage-reporter to use on Linux runners. Supported values: `x86_64` (default) and `aarch64` (or `arm64`). |
37+
| `coverage-reporter-platform` | _optional_ | Default: `auto-detect`. Platform of coverage-reporter to use on Linux runners. Supported values: `auto-detect`, `x86_64`, `aarch64`, or `arm64`. |
3838

3939
<!-- Leaving this here until we decide whether to bring back `coveralls-api-result` in v2 -->
4040
<!-- Please submit any questions, suggestions, requests to: [email protected] -->

action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ inputs:
7474
required: false
7575
default: 'latest'
7676
coverage-reporter-platform:
77-
description: "Platform of coverage-reporter to use on Linux runners. Supported values: x86_64 (default) and aarch64 (or arm64)"
77+
description: "Platform of coverage-reporter to use on Linux runners. Supported values: auto-detect (default), x86_64, aarch64, arm64."
7878
required: false
79-
default: 'x86_64'
79+
default: 'auto-detect'
8080
branding:
8181
color: 'green'
8282
icon: 'percent'
@@ -148,7 +148,9 @@ runs:
148148
# This logic is necessary due to the introduction of multiple platform support starting from v0.6.15.
149149
# It selects the correct filename based on the specified platform and version, while ensuring
150150
# backward compatibility with earlier versions that only supported a generic Linux binary for x86_64.
151-
[ "$COVERAGE_REPORTER_PLATFORM" ] || COVERAGE_REPORTER_PLATFORM="$(uname -m)"
151+
if [ -z "$COVERAGE_REPORTER_PLATFORM" ] || [ "$COVERAGE_REPORTER_PLATFORM" == "auto-detect" ]; then
152+
COVERAGE_REPORTER_PLATFORM="$(uname -m)"
153+
fi
152154
case "$COVERAGE_REPORTER_PLATFORM" in
153155
x86_64|"")
154156
if version_ge "$COVERAGE_REPORTER_VERSION" "v0.6.15"; then

0 commit comments

Comments
 (0)