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
13 changes: 13 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": 1,
"isRoot": true,
"tools": {
"cake.tool": {
"version": "4.2.0",
"commands": [
"dotnet-cake"
]
}
}
}

21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
push:
branches: ["main"]
pull_request:

jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Build (Release via Cake)
run: pwsh -NoProfile -ExecutionPolicy Bypass -File ./build.ps1 -Target Build
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Build outputs
**/bin/
**/obj/

# Visual Studio / Rider
.vs/
.vscode/
.idea/
*.user
*.suo
*.userosscache
*.sln.docstates

# NuGet
*.nupkg
*.snupkg
packages/

# OS / tooling noise
Thumbs.db
Desktop.ini

10 changes: 10 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
param(
[Parameter(Mandatory = $false)]
[string]$Target = "Build"
)

$ErrorActionPreference = "Stop"

dotnet tool restore | Out-Host
dotnet tool run dotnet-cake -- build.cake --target=$Target | Out-Host

8 changes: 8 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail

TARGET="${1:-Build}"

dotnet tool restore
dotnet tool run dotnet-cake -- build.cake --target="$TARGET"