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
102 changes: 51 additions & 51 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
name: CI

# Build + unit tests on every push and PR to master. Keeps the release path
# (release.yml) lean — this catches regressions continuously, not only at release.
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
build-test:
runs-on: windows-latest
env:
# The ProjectReference to ZeroZero.Brand.WinUI defaults to the sibling ..\0z0-shared folder
# for local dev; CI only has this repo, so we check the 0z0-shared repo out below and point the
# csproj's $(ZeroZeroSharedDir) property at it via this env var (MSBuild reads env as a property).
ZeroZeroSharedDir: ${{ github.workspace }}/0z0-shared
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Checkout 0z0-shared (sibling dependency)
uses: actions/checkout@v4
with:
repository: 0z00z0/0z0-shared
path: 0z0-shared

- name: Set up .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.x'

# The app targets win-x64 and does ReadyToRun on Release, which needs the
# win-x64 runtime pack — so restore/build must specify the RID (NETSDK1112).
- name: Restore
run: dotnet restore HyperVManagerTray.csproj -r win-x64

- name: Build (Release)
run: dotnet build HyperVManagerTray.csproj -c Release -r win-x64 --no-restore --nologo

- name: Unit tests
run: dotnet test Tests\HyperVManagerTray.Tests.csproj -c Release --nologo
name: CI
# Build + unit tests on every push and PR to master. Keeps the release path
# (release.yml) lean — this catches regressions continuously, not only at release.
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test:
runs-on: windows-latest
env:
# The ProjectReference to ZeroZero.Brand.WinUI defaults to the sibling ..\0z0-shared folder
# for local dev; CI only has this repo, so we check the 0z0-shared repo out below and point the
# csproj's $(ZeroZeroSharedDir) property at it via this env var (MSBuild reads env as a property).
ZeroZeroSharedDir: ${{ github.workspace }}/0z0-shared
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Checkout 0z0-shared (sibling dependency)
uses: actions/checkout@v7
with:
repository: 0z00z0/0z0-shared
path: 0z0-shared
- name: Set up .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.x'
# The app targets win-x64 and does ReadyToRun on Release, which needs the
# win-x64 runtime pack — so restore/build must specify the RID (NETSDK1112).
- name: Restore
run: dotnet restore HyperVManagerTray.csproj -r win-x64
- name: Build (Release)
run: dotnet build HyperVManagerTray.csproj -c Release -r win-x64 --no-restore --nologo
- name: Unit tests
run: dotnet test Tests\HyperVManagerTray.Tests.csproj -c Release --nologo
Loading
Loading