Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Spice# 3.2.0 #73

Merged
merged 3 commits into from
Sep 1, 2024
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
8 changes: 4 additions & 4 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:
- name: Setup dotnet tooling
uses: actions/setup-dotnet@master
with:
dotnet-version: '5.0.100'
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore

- name: Compile Spice#
- name: Compile Spice#.Behavioral
run: dotnet build SpiceSharpBehavioral\SpiceSharpBehavioral.csproj --configuration Release --no-restore

- name: Publish to NuGet
env:
APIKEY: ${{ secrets.NUGET_APIKEY }}
run: dotnet nuget push .\SpiceSharpBehavioral\bin\Release\SpiceSharpBehavioral.*.nupkg -k $env:APIKEY -s "https://api.nuget.org/v3/index.json"

run: dotnet nuget push ".\build\bin\SpiceSharpBehavioral\SpiceSharpBehavioral.*.nupkg" -k $env:APIKEY -s "https://api.nuget.org/v3/index.json"

4 changes: 2 additions & 2 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
- name: Setup dotnet tooling
uses: actions/setup-dotnet@master
with:
dotnet-version: '5.0.100'
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore

- name: Compile Spice#.Behavioral
run: dotnet build SpiceSharpBehavioral/SpiceSharpBehavioral.csproj --configuration Debug --no-restore

- name: Compile Spice#.Behavioral.Test
- name: Compile Spice#.Behavioral.Tests
run: dotnet test SpiceSharpBehavioralTest/SpiceSharpBehavioralTest.csproj --configuration Debug --no-restore
6 changes: 3 additions & 3 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
- name: Setup dotnet tooling
uses: actions/setup-dotnet@master
with:
dotnet-version: '5.0.100'
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore

- name: Compile Spice#.Behavioral
run: dotnet build SpiceSharpbehavioral/SpiceSharpBehavioral.csproj --configuration Debug --no-restore
run: dotnet build SpiceSharpBehavioral/SpiceSharpBehavioral.csproj --configuration Debug --no-restore

- name: Compile Spice#.Behavioral.Test
- name: Compile Spice#.Behavioral.Tests
run: dotnet test SpiceSharpBehavioralTest/SpiceSharpBehavioralTest.csproj --configuration Debug --no-restore
2 changes: 1 addition & 1 deletion .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup dotnet tooling
uses: actions/setup-dotnet@master
with:
dotnet-version: '5.0.100'
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore
Expand Down
6 changes: 0 additions & 6 deletions Benchmark/App.config

This file was deleted.

61 changes: 0 additions & 61 deletions Benchmark/Benchmark.csproj

This file was deleted.

109 changes: 0 additions & 109 deletions Benchmark/BenchmarkBehavioralVsParser.cs

This file was deleted.

13 changes: 0 additions & 13 deletions Benchmark/Program.cs

This file was deleted.

36 changes: 0 additions & 36 deletions Benchmark/Properties/AssemblyInfo.cs

This file was deleted.

44 changes: 43 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
<Project>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!-- Directories -->
<PropertyGroup>
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
<UserDocsDir>$(RepoRoot)docs/</UserDocsDir>
<BuildDir>$(RepoRoot)build\</BuildDir>
<DocPath>$(BuildDir)doc\</DocPath>
</PropertyGroup>

<!-- Build info -->
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<NeutralLanguage>en</NeutralLanguage>
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
<LangVersion>latest</LangVersion>
<OutputPath>$(BuildDir)bin\$(MSBuildProjectName)\</OutputPath>
<BaseIntermediateOutputPath>$(BuildDir)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<DocumentationFile>$(DocPath)$(MSBuildProjectName).xml</DocumentationFile>
</PropertyGroup>

<!-- Assembly info -->
<PropertyGroup>
<Authors>Sven Boulanger</Authors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Title>Spice#</Title>
<Company>SpiceSharp</Company>
</PropertyGroup>

<!-- NuGet package info -->
<PropertyGroup>
<PackageProjectUrl>https://github.com/SpiceSharp/SpiceSharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/SpiceSharp/SpiceSharp</RepositoryUrl>
<PackageTags>circuit electronics netlist spice simulator simulation ode solver design</PackageTags>
<PackageReleaseNotes>Refer to the GitHub release for release notes.</PackageReleaseNotes>
<PackageIcon>logo_full.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<PackageTags>circuit electronics netlist parser spice simulator simulation ode solver design</PackageTags>
</PropertyGroup>
<ItemGroup>
<None Include="$(UserDocsDir)api/images/logo_full.png" Pack="true" Visible="false" PackagePath="" />
<None Include="$(RepoRoot)README.md" Pack="true" Visible="false" PackagePath="" />
</ItemGroup>
</Project>
51 changes: 51 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!-- Only create packages for non-test projects -->
<PropertyGroup Condition="'$(TestProjectType)' == ''">
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

<!-- Packages for all projects -->
<ItemGroup>
<PackageReference Include="SpiceSharp" Version="3.2.0" />
<PackageReference Include="SpiceSharpGenerator" Version="1.0.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<!-- Include the default test packages for test projects -->
<ItemGroup Condition="'$(TestProjectType)' != ''">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.4.3" />
<PackageReference Include="MSTest.TestFramework" Version="3.4.3" />
<PackageReference Include="NUnit" Version="4.1.0" />
<PackageReference Include="NUnit.Console" Version="3.17.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NUnit.Analyzers" Version="4.2.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<!-- Disable some rules for test projects -->
<PropertyGroup Condition="'$(TestProjectType)' != ''">
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>

<!-- Automatic versioning using GitInfo if UseGitInfo is set to true -->
<PropertyGroup Condition="'$(UseGitInfo)' == 'true'">
<GitSkipCache>true</GitSkipCache>
<GitBaseVersionRegex>^(?:\w+-)?v?(?&lt;MAJOR&gt;\d+)\.(?&lt;MINOR&gt;\d+)\.(?&lt;PATCH&gt;\d+)$</GitBaseVersionRegex>
</PropertyGroup>
<ItemGroup Condition="'$(UseGitInfo)' == 'true'">
<PackageReference Include="GitInfo" Version="3.3.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>
Loading