pantry/projects/dotnet.microsoft.com/package.yml
2024-01-24 16:57:06 -05:00

37 lines
821 B
YAML

distributable:
url: https://github.com/dotnet/sdk/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: dotnet/sdk/tags
strip: /v/
warnings:
- vendored
runtime:
env:
DOTNET_ROOT: "{{prefix}}"
dependencies:
linux:
unicode.org: ^71
build:
dependencies:
curl.se: '*'
working-directory: ${{prefix}}
script:
- curl -L "https://dotnetcli.azureedge.net/dotnet/Sdk/{{version}}/dotnet-sdk-{{version}}-${PLATFORM}.tar.gz" | tar zxf -
- run: ln -s ../dotnet ./dotnet
working-directory: "{{prefix}}/bin"
env:
darwin/aarch64: { PLATFORM: osx-arm64 }
darwin/x86-64: { PLATFORM: osx-x64 }
linux/aarch64: { PLATFORM: linux-arm64 }
linux/x86-64: { PLATFORM: linux-x64 }
provides:
- bin/dotnet
test:
script:
- dotnet --version | grep {{version}}