Skip to content
Draft
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
143 changes: 143 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
name: CI

on:
push:
branches:
- main
- codex/rs50-oled-production
pull_request:

permissions:
contents: read

jobs:
build-and-test:
runs-on: windows-latest

steps:
- name: Check out source
uses: actions/checkout@v7

- name: Install .NET 10 SDK
uses: actions/setup-dotnet@v6
with:
dotnet-version: 10.0.x

- name: Restore
run: dotnet restore .\LogiDynamicDash.slnx

- name: Build with warnings as errors
run: >
dotnet build .\LogiDynamicDash.slnx
-c Release
--no-restore
-warnaserror

- name: Test
run: >
dotnet test .\LogiDynamicDash.slnx
-c Release
--no-build

- name: Verify formatting
run: >
dotnet format .\LogiDynamicDash.slnx
--verify-no-changes
--no-restore

- name: Audit RS50 production surface
shell: powershell
run: .\scripts\Test-Rs50OledProductionSurface.ps1

- name: Audit vulnerable packages
run: >
dotnet list .\LogiDynamicDash.slnx
package
--vulnerable
--include-transitive

package-windows:
needs: build-and-test
runs-on: windows-latest

steps:
- name: Check out source
uses: actions/checkout@v7

- name: Install .NET 10 SDK
uses: actions/setup-dotnet@v6
with:
dotnet-version: 10.0.x

- name: Restore Windows runtime
run: |
dotnet restore .\LogiDynamicDash\LogiDynamicDash.csproj -r win-x64
dotnet restore .\LogiDynamicDash.Configurator\LogiDynamicDash.Configurator.csproj -r win-x64

- name: Publish framework-dependent Windows package
run: >
dotnet publish .\LogiDynamicDash\LogiDynamicDash.csproj
-c Release
-r win-x64
--self-contained false
--no-restore
-o .\artifacts\LogiDynamicDash-win-x64

- name: Publish framework-dependent configurator
run: >
dotnet publish
.\LogiDynamicDash.Configurator\LogiDynamicDash.Configurator.csproj
-c Release
-r win-x64
--self-contained false
--no-restore
-o .\artifacts\LogiDynamicDash-win-x64

- name: Complete and smoke-test framework-dependent package
shell: powershell
run: >
.\scripts\Complete-WindowsPackage.ps1
-PackageRoot .\artifacts\LogiDynamicDash-win-x64
-Version 0.3.0-alpha

- name: Upload Windows package
uses: actions/upload-artifact@v7
with:
name: LogiDynamicDash-win-x64
path: artifacts/LogiDynamicDash-win-x64
if-no-files-found: error
retention-days: 14

- name: Publish self-contained Windows package
run: >
dotnet publish .\LogiDynamicDash\LogiDynamicDash.csproj
-c Release
-r win-x64
--self-contained true
--no-restore
-o .\artifacts\LogiDynamicDash-win-x64-self-contained

- name: Publish self-contained configurator
run: >
dotnet publish
.\LogiDynamicDash.Configurator\LogiDynamicDash.Configurator.csproj
-c Release
-r win-x64
--self-contained true
--no-restore
-o .\artifacts\LogiDynamicDash-win-x64-self-contained

- name: Complete and smoke-test self-contained package
shell: powershell
run: >
.\scripts\Complete-WindowsPackage.ps1
-PackageRoot .\artifacts\LogiDynamicDash-win-x64-self-contained
-Version 0.3.0-alpha

- name: Upload self-contained Windows package
uses: actions/upload-artifact@v7
with:
name: LogiDynamicDash-win-x64-self-contained
path: artifacts/LogiDynamicDash-win-x64-self-contained
if-no-files-found: error
retention-days: 14
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,14 @@ MigrationBackup/
# Fody - auto-generated XML schema
FodyWeavers.xsd

# Local hardware-research artifacts
.tmp/
.logs/
*.pcap
*.pcapng
*.mov
*.MOV

# VS Code files for those working on multiple tools
.vscode/*
!.vscode/settings.json
Expand Down
7 changes: 7 additions & 0 deletions LogiDynamicDash.Configurator/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Application x:Class="LogiDynamicDash.Configurator.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>
7 changes: 7 additions & 0 deletions LogiDynamicDash.Configurator/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using System.Windows;

namespace LogiDynamicDash.Configurator;

public partial class App : Application
{
}
17 changes: 17 additions & 0 deletions LogiDynamicDash.Configurator/LogiDynamicDash.Configurator.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net10.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AssemblyName>LogiDynamicDash.Configurator</AssemblyName>
<Version>0.3.0-alpha</Version>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\LogiDynamicDash\LogiDynamicDash.csproj" />
</ItemGroup>

</Project>
Loading