Skip to content
Open
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
22 changes: 18 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,30 @@ jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install dependencies
run: dotnet restore
working-directory: ./Src

- name: Build
run: dotnet build --configuration Release --no-restore
run: dotnet build --configuration Release --no-restore -p:ContinuousIntegrationBuild=true
working-directory: ./Src

- name: Test .NET 4.8
run: dotnet test -f net48 --no-restore --verbosity normal
run: dotnet test -f net48 --configuration Release --no-restore --no-build --verbosity normal
working-directory: ./Src

- name: Test .NET 8
run: dotnet test -f net8 --no-restore --verbosity normal
run: dotnet test -f net8 --configuration Release --no-restore --no-build --verbosity normal
working-directory: ./Src

- name: Pack
run: dotnet pack --configuration Release --no-restore --no-build -o "../artifacts"
working-directory: ./Src

- name: Publish
uses: actions/upload-artifact@v4
with:
name: packages
path: 'artifacts/*.*nupkg'
4 changes: 4 additions & 0 deletions Src/Enums.NET/Enums.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<DebugType>portable</DebugType>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<ItemGroup>
Expand Down