Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup .NET 6.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x

- name: Setup .NET 7.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.x

- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
Expand All @@ -37,14 +27,19 @@ jobs:
with:
dotnet-version: 9.x

- name: Setup .NET 10.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.x

- name: Restore dependencies
run: dotnet restore

- name: Pack LightObjects
run: |
dotnet build ./src/LightObjects/LightObjects.csproj --configuration Release --no-restore
dotnet pack ./src/LightObjects/LightObjects.csproj --configuration Release --no-build --output .

- name: Pack LightObjects.Generated
run: |
dotnet build ./src/LightObjects.Generated/LightObjects.Generated.csproj --configuration Release --no-restore
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ jobs:
with:
languages: 'csharp'

- name: Setup .NET 6.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x

- name: Setup .NET 7.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.x

- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
Expand All @@ -45,14 +35,19 @@ jobs:
with:
dotnet-version: 9.x

- name: Setup .NET 10.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.x

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal --framework net8.0
run: dotnet test --configuration Release --no-build --verbosity normal

- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3
6 changes: 3 additions & 3 deletions src/LightObjects.Generated/LightObjects.Generated.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
<!-- Output -->
<PropertyGroup>
<AssemblyName>LightObjects.Generated</AssemblyName>
<Version>9.0.0-preview.4</Version>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<FileVersion>9.0.0.0</FileVersion>
<Version>10.0.0-preview.1</Version>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<FileVersion>10.0.0.0</FileVersion>
<NeutralLanguage>en-US</NeutralLanguage>
<IncludeBuildOutput>false</IncludeBuildOutput>
</PropertyGroup>
Expand Down
14 changes: 7 additions & 7 deletions src/LightObjects/LightObjects.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<!-- Compilation -->
<PropertyGroup>
<RootNamespace>LightObjects</RootNamespace>
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
Expand All @@ -17,19 +17,19 @@

<!-- References -->
<ItemGroup>
<PackageReference Include="LightResults" Version="9.0.0" />
<PackageReference Include="LightResults" Version="10.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
</ItemGroup>

<!-- Output -->
<PropertyGroup>
<AssemblyName>LightObjects</AssemblyName>
<Version>9.0.0-preview.2</Version>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<FileVersion>9.0.0.0</FileVersion>
<Version>10.0.0-preview.1</Version>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<FileVersion>10.0.0.0</FileVersion>
<NeutralLanguage>en-US</NeutralLanguage>
<Optimize>true</Optimize>
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
<IsAotCompatible>true</IsAotCompatible>
<!--<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>-->
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
Expand All @@ -14,17 +14,17 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="LightResults" Version="9.0.0" />
<PackageReference Include="LightResults" Version="10.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\LightObjects.Generated\LightObjects.Generated.csproj"
PrivateAssets="all"
ReferenceOutputAssembly="false"
OutputItemType="Analyzer"
SetTargetFramework="TargetFramework=netstandard2.0"/>
SetTargetFramework="TargetFramework=net8.0"/>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\LightObjects\LightObjects.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
Expand Down
Loading