Skip to content

Commit

Permalink
Update Cake.ISO to target Cake v3.0.0 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
augustoproiete authored Nov 18, 2022
1 parent 2b5d7b4 commit 04535e9
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 41 deletions.
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": "2.3.0",
"version": "3.0.0",
"commands": [
"dotnet-cake"
]
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fail-fast: false
matrix:
job:
- os: ubuntu-20.04
- os: ubuntu-22.04
build: ./build.sh
push: true
- os: windows-2022
Expand All @@ -36,18 +36,14 @@ jobs:
name: ${{ matrix.job.os }}
runs-on: ${{ matrix.job.os }}
steps:
- name: Setup netcoreapp3.1
uses: actions/[email protected]
with:
dotnet-version: "3.1.425"
- name: Setup net5.0
uses: actions/[email protected]
with:
dotnet-version: "5.0.403"
- name: Setup net6.0
uses: actions/[email protected]
with:
dotnet-version: "6.0.403"
- name: Setup net7.0
uses: actions/[email protected]
with:
dotnet-version: "7.0.100"
- name: Run dotnet --info
run: dotnet --info
- uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<LangVersion>9.0</LangVersion>
<LangVersion>11.0</LangVersion>

<NoWarn>$(NoWarn);NU5048;CS8032</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
4 changes: 2 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#addin "nuget:?package=Cake.MinVer&version=2.0.0"
#addin "nuget:?package=Cake.Args&version=2.0.0"
#addin "nuget:?package=Cake.MinVer&version=3.0.0"
#addin "nuget:?package=Cake.Args&version=3.0.0"

var target = ArgumentOrDefault<string>("target") ?? "pack";
var buildVersion = MinVer(s => s.WithTagPrefix("v").WithDefaultPreReleasePhase("preview"));
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk": {
"allowPrerelease": false,
"version": "6.0.100",
"version": "7.0.100",
"rollForward": "latestFeature"
}
}
22 changes: 0 additions & 22 deletions recipe.cake

This file was deleted.

4 changes: 2 additions & 2 deletions src/Cake.ISO/Cake.ISO.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net7.0;net6.0</TargetFrameworks>
<RootNamespace>Cake.ISO</RootNamespace>

<AssemblyName>Cake.ISO</AssemblyName>
Expand Down Expand Up @@ -45,7 +45,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="2.0.0" PrivateAssets="All" />
<PackageReference Include="Cake.Core" Version="3.0.0" PrivateAssets="All" />

<PackageReference Include="DiscUtils.Core" Version="0.16.13" />
<PackageReference Include="DiscUtils.Iso9660" Version="0.16.13" />
Expand Down
6 changes: 3 additions & 3 deletions test/Cake.ISO.Tests/Cake.ISO.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net7.0;net6.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Cake.ISO\Cake.ISO.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="2.0.0" />
<PackageReference Include="Cake.Testing" Version="2.0.0" />
<PackageReference Include="Cake.Core" Version="3.0.0" />
<PackageReference Include="Cake.Testing" Version="3.0.0" />

<PackageReference Include="Moq" Version="4.18.2" />

Expand Down

0 comments on commit 04535e9

Please sign in to comment.