Skip to content

Instantly share code, notes, and snippets.

@badsyntax
Last active February 18, 2022 12:58
Show Gist options
  • Save badsyntax/20b46747c129649e749e8ab86eb454b4 to your computer and use it in GitHub Desktop.
Save badsyntax/20b46747c129649e749e8ab86eb454b4 to your computer and use it in GitHub Desktop.
Azure pipelines install dotnet on mac mini arm64
steps:
- script: |
DOTNET_VERSION="6.0.1xx"
DOTNET_TEMP_DIRECTORY=$(cat /dev/urandom | env LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
DOTNET_INSTALL_LOCATION="$(Agent.TempDirectory)/$DOTNET_TEMP_DIRECTORY"
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --architecture arm64 --channel "$DOTNET_VERSION" --install-dir "$DOTNET_INSTALL_LOCATION"
PATH="$PATH:$DOTNET_INSTALL_LOCATION"
echo "##vso[task.setvariable variable=PATH;]$PATH"
displayName: Install .NET 6.0 SDK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment