Skip to content

Commit 8d7b080

Browse files
committed
Add GitHub Actions build
- Remove custom build scripts - Remove binaries for build scripts
1 parent c0c2f41 commit 8d7b080

30 files changed

+172
-697
lines changed

.github/workflows/build.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Build
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
env:
6+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
7+
DOTNET_NOLOGO: true
8+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
9+
NuGetDirectory: ${{ github.workspace }}/nuget
10+
11+
defaults:
12+
run:
13+
shell: pwsh
14+
15+
jobs:
16+
build:
17+
name: ${{ matrix.platform.name }} ${{ matrix.dotnet.name }}
18+
runs-on: ${{ matrix.platform.os }}
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
platform:
24+
- { name: Windows x64, os: windows-2025 }
25+
- { name: Ubuntu x64, os: ubuntu-24.04 }
26+
- { name: macOS arm64, os: macos-15 }
27+
dotnet:
28+
- { name: .NET 8, version: '8.0.x' }
29+
- { name: .NET 9, version: '9.0.x' }
30+
- { name: .NET 10, version: '10.0.x' }
31+
32+
steps:
33+
- name: Checkout HTML Renderer
34+
uses: actions/checkout@v6
35+
36+
- name: Setup .NET ${{ matrix.dotnet.version }} SDK
37+
id: setup-dotnet
38+
uses: actions/setup-dotnet@v5
39+
with:
40+
dotnet-version: ${{ matrix.dotnet.version }}
41+
- name: Enforce SDK Version
42+
run: dotnet new globaljson --sdk-version ${{ steps.setup-dotnet.outputs.dotnet-version }} --force
43+
- name: Verify SDK Installation
44+
run: dotnet --info
45+
46+
- name: Restore Dependencies
47+
run: dotnet restore Source/HtmlRenderer.sln
48+
49+
- name: Build
50+
run: dotnet build Source/HtmlRenderer.sln --configuration Release --no-restore
51+
52+
- name: Create HtmlRenderer.Core NuGet package
53+
run: dotnet pack Source/HtmlRenderer/HtmlRenderer.csproj --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg --no-build --verbosity normal --output ${{ env.NuGetDirectory }}
54+
55+
- name: Create HtmlRenderer.WinForms NuGet package
56+
run: dotnet pack Source/HtmlRenderer.WinForms/HtmlRenderer.WinForms.csproj --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg --no-build --verbosity normal --output ${{ env.NuGetDirectory }}
57+
58+
- name: Create HtmlRenderer.WPF NuGet package
59+
run: dotnet pack Source/HtmlRenderer.WPF/HtmlRenderer.WPF.csproj --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg --no-build --verbosity normal --output ${{ env.NuGetDirectory }}
60+
61+
- name: Upload NuGet package artifacts
62+
uses: actions/upload-artifact@v5
63+
with:
64+
name: "HTML Renderer (${{ matrix.platform.name }} ${{ matrix.dotnet.name }})"
65+
path: ${{ env.NuGetDirectory }}/*.*nupkg

Build/0 full.bat

Lines changed: 0 additions & 57 deletions
This file was deleted.

Build/1 build libs.bat

Lines changed: 0 additions & 103 deletions
This file was deleted.

Build/2 build demo.bat

Lines changed: 0 additions & 36 deletions
This file was deleted.

Build/3 archive.bat

Lines changed: 0 additions & 24 deletions
This file was deleted.

Build/4 pack nuget.bat

Lines changed: 0 additions & 18 deletions
This file was deleted.

Build/7za.exe

-574 KB
Binary file not shown.

Build/NuGet.exe

-1.58 MB
Binary file not shown.

Build/NuGet/HtmlRenderer.Core.nuspec

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)