pantry/projects/dotnet.microsoft.com/package.yml

38 lines
821 B
YAML
Raw Normal View History

distributable:
url: https://github.com/dotnet/sdk/archive/v{{version}}.tar.gz
strip-components: 1
versions:
2024-01-01 21:11:34 +03:00
github: dotnet/sdk/tags
strip: /v/
warnings:
- vendored
runtime:
env:
DOTNET_ROOT: "{{prefix}}"
2023-07-27 18:41:46 +03:00
dependencies:
linux:
unicode.org: '*'
build:
dependencies:
curl.se: '*'
working-directory: ${{prefix}}
script:
2024-01-01 21:11:34 +03:00
- 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:
2024-01-01 21:11:34 +03:00
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}}