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
65 changes: 65 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Build

on: [push, pull_request, workflow_dispatch]

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
NuGetDirectory: ${{ github.workspace }}/nuget

defaults:
run:
shell: pwsh

jobs:
build:
name: ${{ matrix.platform.name }} ${{ matrix.dotnet.name }}
runs-on: ${{ matrix.platform.os }}

strategy:
fail-fast: false
matrix:
platform:
- { name: Windows x64, os: windows-2025 }
- { name: Ubuntu x64, os: ubuntu-24.04 }
- { name: macOS arm64, os: macos-15 }
dotnet:
- { name: .NET 8, version: '8.0.x' }
- { name: .NET 9, version: '9.0.x' }
- { name: .NET 10, version: '10.0.x' }

steps:
- name: Checkout HTML Renderer
uses: actions/checkout@v6

- name: Setup .NET ${{ matrix.dotnet.version }} SDK
id: setup-dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ matrix.dotnet.version }}
- name: Enforce SDK Version
run: dotnet new globaljson --sdk-version ${{ steps.setup-dotnet.outputs.dotnet-version }} --force
- name: Verify SDK Installation
run: dotnet --info

- name: Restore Dependencies
run: dotnet restore Source/HtmlRenderer.sln

- name: Build
run: dotnet build Source/HtmlRenderer.sln --configuration Release --no-restore

- name: Create HtmlRenderer.Core NuGet package
run: dotnet pack Source/HtmlRenderer/HtmlRenderer.csproj --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg --no-build --verbosity normal --output ${{ env.NuGetDirectory }}

- name: Create HtmlRenderer.WinForms NuGet package
run: dotnet pack Source/HtmlRenderer.WinForms/HtmlRenderer.WinForms.csproj --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg --no-build --verbosity normal --output ${{ env.NuGetDirectory }}

- name: Create HtmlRenderer.WPF NuGet package
run: dotnet pack Source/HtmlRenderer.WPF/HtmlRenderer.WPF.csproj --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg --no-build --verbosity normal --output ${{ env.NuGetDirectory }}

- name: Upload NuGet package artifacts
uses: actions/upload-artifact@v5
with:
name: "HTML Renderer (${{ matrix.platform.name }} ${{ matrix.dotnet.name }})"
path: ${{ env.NuGetDirectory }}/*.*nupkg
57 changes: 0 additions & 57 deletions Build/0 full.bat

This file was deleted.

103 changes: 0 additions & 103 deletions Build/1 build libs.bat

This file was deleted.

36 changes: 0 additions & 36 deletions Build/2 build demo.bat

This file was deleted.

24 changes: 0 additions & 24 deletions Build/3 archive.bat

This file was deleted.

18 changes: 0 additions & 18 deletions Build/4 pack nuget.bat

This file was deleted.

Binary file removed Build/7za.exe
Binary file not shown.
Binary file removed Build/NuGet.exe
Binary file not shown.
39 changes: 0 additions & 39 deletions Build/NuGet/HtmlRenderer.Core.nuspec

This file was deleted.

Loading
Loading