mirror of
https://github.com/actions/runner.git
synced 2025-12-11 21:06:55 +00:00
Preserve CURRENT_PLATFORM in dev.sh
This commit is contained in:
@@ -28,10 +28,6 @@ if [[ "$DEV_CONFIG" == "Release" ]]; then
|
||||
BUILD_CONFIG="Release"
|
||||
fi
|
||||
|
||||
if [[ -n "$DEV_TARGET_RUNTIME" ]]; then
|
||||
RUNTIME_ID="$DEV_TARGET_RUNTIME"
|
||||
else
|
||||
echo "Automatically determining target runtime"
|
||||
CURRENT_PLATFORM="windows"
|
||||
if [[ ($(uname) == "Linux") || ($(uname) == "Darwin") ]]; then
|
||||
CURRENT_PLATFORM=$(uname | awk '{print tolower($0)}')
|
||||
@@ -62,9 +58,10 @@ else
|
||||
elif [[ "$CURRENT_PLATFORM" == 'darwin' ]]; then
|
||||
RUNTIME_ID='osx-x64'
|
||||
fi
|
||||
echo "$RUNTIME_ID"
|
||||
fi
|
||||
|
||||
if [[ -n "$DEV_TARGET_RUNTIME" ]]; then
|
||||
RUNTIME_ID="$DEV_TARGET_RUNTIME"
|
||||
fi
|
||||
|
||||
# Make sure current platform support publish the dotnet runtime
|
||||
# Windows can publish win-x86/x64
|
||||
|
||||
Reference in New Issue
Block a user