Skip to content

Commit

Permalink
Appveyor: Added installation of .NET SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailGorobets committed Dec 7, 2023
1 parent 27837aa commit cd0b5e3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
7 changes: 0 additions & 7 deletions BuildTools/Scripts/appveyor/install.bat

This file was deleted.

19 changes: 19 additions & 0 deletions BuildTools/Scripts/appveyor/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
$DOTNET_URL = "https://dot.net/v1/dotnet-install.ps1"
$CMAKE_URL = "https://github.com/Kitware/CMake/releases/download/v3.23.3/cmake-3.23.3-windows-x86_64.zip"

# Install .NET
Invoke-WebRequest $DOTNET_URL -OutFile "dotnet-install.ps1"
./dotnet-install.ps1 -Version 6.0.100 -InstallDir "C:\Program Files\dotnet"

# Install CMake
Invoke-WebRequest $CMAKE_URL -OutFile "cmake.zip"
Expand-Archive -Path cmake.zip -DestinationPath C:\projects\deps -Force

# Configuring environment
Move-Item -Path (Get-ChildItem C:\projects\deps\cmake-* | Select-Object -ExpandProperty FullName) -Destination C:\projects\deps\cmake -Force
$env:PATH = "C:\projects\deps\cmake\bin;C:\Python37-x64;$env:PATH"

# Check dependencies
cmake --version
python --version
dotnet --list-sdks

0 comments on commit cd0b5e3

Please sign in to comment.