Skip to content

Commit

Permalink
Merge pull request #101 from nils-a/feature/GH-100
Browse files Browse the repository at this point in the history
(#100) Bump Cake.Recipe to 3.1.1
  • Loading branch information
nils-a authored Jul 18, 2024
2 parents cd3983b + 0c85439 commit d6d65f5
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 12 deletions.
18 changes: 17 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
#---------------------------------#
# Build Image #
#---------------------------------#
image: Visual Studio 2019
image: Visual Studio 2022

#---------------------------------#
# Install .NET #
#---------------------------------#
install:
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
- ps: Invoke-WebRequest -Uri "https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel 2.1 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel 3.1 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel 5.0 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel 6.0 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel 7.0 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Channel 8.0 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
- ps: dotnet --info

#---------------------------------#
# Build Script #
Expand Down
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "0.38.5",
"version": "1.3.0",
"commands": [
"dotnet-cake"
]
Expand Down
27 changes: 25 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,33 @@ steps:
inputs:
key: '"$(Agent.OS)" | recipe.cake'
path: 'tools'
- task: UseDotNet@2
displayName: 'Install .NETCore 2.1'
inputs:
version: '2.1.x'
- task: UseDotNet@2
displayName: 'Install .NETCore 3.1'
inputs:
version: '3.1.x'
- task: UseDotNet@2
displayName: 'Install .NET 5'
inputs:
version: '5.x'
- task: UseDotNet@2
displayName: 'Install .NET 6'
inputs:
version: '6.x'
- task: UseDotNet@2
displayName: 'Install .NET 7'
inputs:
version: '7.x'
- task: UseDotNet@2
displayName: 'Install .NET 8'
inputs:
version: '8.x'
- task: Cake@2
inputs:
script: 'recipe.cake'
target: 'CI'
verbosity: 'Normal'
Bootstrap: true
Version: '0.38.5'
Version: '1.3.0'
4 changes: 0 additions & 4 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ Write-Host "Restoring .NET Core tools"
dotnet tool restore
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

Write-Host "Bootstrapping Cake"
dotnet cake $SCRIPT_NAME --bootstrap
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

Write-Host "Running Build"
dotnet cake $SCRIPT_NAME @args
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
3 changes: 0 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@ SCRIPT_NAME="recipe.cake"
echo "Restoring .NET Core tools"
dotnet tool restore

echo "Bootstrapping Cake"
dotnet cake $SCRIPT_NAME --bootstrap

echo "Running Build"
dotnet cake $SCRIPT_NAME "$@"
2 changes: 1 addition & 1 deletion recipe.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#load nuget:?package=Cake.Recipe&version=2.2.0
#load nuget:?package=Cake.Recipe&version=3.1.1

Environment.SetVariableNames();

Expand Down

0 comments on commit d6d65f5

Please sign in to comment.