Skip to content

Commit

Permalink
#11: ci build install net5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ieremenko committed Oct 10, 2020
1 parent 9628460 commit a84d053
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,17 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Dotnet info
shell: pwsh
run: dotnet --info

- name: Install net5.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.100-rc.2.20464.8'
shell: pwsh
run: .\Build\step-install-dotnet.ps1

- name: Dotnet info
shell: pwsh
run: dotnet --info

- name: Install ThirdPartyLibraries
shell: cmd
Expand Down
2 changes: 2 additions & 0 deletions Build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ install [psake](https://www.powershellgallery.com/packages/psake)
PS> Install-Module -Name psake
```

install [net5.0](https://dotnet.microsoft.com/download/dotnet/5.0)

install ThirdPartyLibraries

``` powershell
Expand Down
13 changes: 13 additions & 0 deletions Build/step-install-dotnet.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$downloadDir = [System.IO.Path]::GetFullPath((Join-Path $PSScriptRoot "..\build-out"))
if (-not (Test-Path $downloadDir)) {
New-Item -Path $downloadDir -ItemType Directory | Out-Null
}

$dotnetInstall = Join-Path $downloadDir "dotnet-install.ps1"
if (Test-Path $dotnetInstall) {
Remove-Item -Path $dotnetInstall
}

Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile $dotnetInstall

& $dotnetInstall -Version "5.0.100-rc.2.20464.8" -InstallDir "C:\Program Files\dotnet"

0 comments on commit a84d053

Please sign in to comment.