Skip to content

Commit

Permalink
Remove dotnet
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier committed Dec 18, 2024
1 parent b385552 commit ee9f7d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
10 changes: 4 additions & 6 deletions Build/CI/install-env.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
#!/bin/bash

echo "Dotnet is $(whereis dotnet) and PATH is $PATH"
sudo apt remove --purge dotnet*
sudo apt remove --purge aspnetcore*

wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh

# https://dotnetcli.azureedge.net/dotnet/release-metadata/releases-index.json
chmod +x ./dotnet-install.sh
./dotnet-install.sh --version 9.0.101 --channel LTS

/home/runner/.dotnet/dotnet --info
rm -rf /usr/lib/dotnet
sudo ln "$HOME/.dotnet/dotnet" /usr/lib/dotnet

[[ "${ADDITIONAL_RUNTIME:-}" ]] \
&& echo "Additional Runtime needed: $ADDITIONAL_RUNTIME" \
&& ./dotnet-install.sh --version "$ADDITIONAL_RUNTIME" --runtime dotnet --channel LTS

/home/runner/.dotnet/dotnet --info

echo "Dotnet is $(whereis dotnet) and PATH is $PATH"
3 changes: 1 addition & 2 deletions Build/CI/tests.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/bin/bash
set -e

echo "Dotnet is $(whereis dotnet) and PATH is $PATH"
export PATH="$PATH:$HOME/.dotnet"

: "${BUILD_ARGS:=}"


export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
dotnet --info
dotnet build ./NBitcoin.Tests/NBitcoin.Tests.csproj \
Expand Down

0 comments on commit ee9f7d5

Please sign in to comment.