Skip to content

Commit

Permalink
Explicitly set auto-detect as default for platform
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed Jan 25, 2025
1 parent 773b6d8 commit 1027d8c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ inputs:
required: false
default: 'latest'
coverage-reporter-platform:
description: "Platform of coverage-reporter to use on Linux runners. Supported values: x86_64 (default) and aarch64 (or arm64)"
description: "Platform of coverage-reporter to use on Linux runners. Supported values: auto-detect (default), x86_64, aarch64, arm64."
required: false
default: 'x86_64'
default: 'auto-detect'
branding:
color: 'green'
icon: 'percent'
Expand Down Expand Up @@ -148,7 +148,9 @@ runs:
# This logic is necessary due to the introduction of multiple platform support starting from v0.6.15.
# It selects the correct filename based on the specified platform and version, while ensuring
# backward compatibility with earlier versions that only supported a generic Linux binary for x86_64.
[ "$COVERAGE_REPORTER_PLATFORM" ] || COVERAGE_REPORTER_PLATFORM="$(uname -m)"
if [ -z "$COVERAGE_REPORTER_PLATFORM" ] || [ "$COVERAGE_REPORTER_PLATFORM" == "auto-detect" ]; then
COVERAGE_REPORTER_PLATFORM="$(uname -m)"
fi
case "$COVERAGE_REPORTER_PLATFORM" in
x86_64|"")
if version_ge "$COVERAGE_REPORTER_VERSION" "v0.6.15"; then
Expand Down

0 comments on commit 1027d8c

Please sign in to comment.