This repository was archived by the owner on Mar 19, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.72 KB
/
ci.yml
File metadata and controls
43 lines (40 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- name: Compile shaders
run: nix develop --command task shader-compile
- run: nix develop --command dotnet build Seed.slnx -c Release
- run: nix develop --command dotnet test src/Seed.Engine.Tests/Seed.Engine.Tests.csproj -c Release --logger "trx"
- name: Verify zero-allocation frame loop
run: nix develop --command dotnet test src/Seed.Engine.Tests/Seed.Engine.Tests.csproj -c Release --no-build --filter "FullyQualifiedName~FrameLoopAllocationTests" --logger "trx;LogFileName=zero-alloc.trx"
- name: Verify frame time budget (p99 CPU, Desktop reference scene)
run: nix develop --command dotnet test src/Seed.Engine.Tests/Seed.Engine.Tests.csproj -c Release --no-build --filter "FullyQualifiedName~FrameTimeBudgetTests" --logger "trx;LogFileName=frame-time-budget.trx"
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: "**/*.trx"
go-build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- run: nix develop --command bash -c "cd server && go build ./..."
- run: nix develop --command bash -c "cd server && go test ./... -v"
proto-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- run: nix develop --command task proto:gen
- run: git diff --exit-code -- server/pkg/proto/ src/Seed.Shared/Proto/