- Added .gitea/workflows/ci.yml with Windows and Linux (mono) build jobs
- Added scripts/ci_build.sh for Linux/mono runners
- Updated README.md with Gitea CI status badge
- Both workflows run verify-build.bat equivalent logic
Verification: ./verify-build.bat ✅ (492 tests passing)
71 lines
2.0 KiB
YAML
71 lines
2.0 KiB
YAML
name: CI Build & Test
|
|
|
|
on:
|
|
push:
|
|
branches: [main, cleanup/wrappers-pass2]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build-and-test:
|
|
name: Build & Test (Windows)
|
|
runs-on: [self-hosted, windows]
|
|
timeout-minutes: 30
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET Framework
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: '4.8.x'
|
|
|
|
- name: Restore dependencies
|
|
run: dotnet restore NT8-SDK.sln
|
|
|
|
- name: Build solution
|
|
run: dotnet build NT8-SDK.sln --configuration Release --no-restore
|
|
|
|
- name: Run tests
|
|
run: dotnet test NT8-SDK.sln --configuration Release --no-build --logger trx
|
|
|
|
- name: Upload test results
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: test-results
|
|
path: '**/*.trx'
|
|
|
|
- name: Upload build logs on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: build-logs
|
|
path: '**/*.log'
|
|
|
|
build-and-test-linux:
|
|
name: Build & Test (Linux/mono)
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install mono
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y mono-complete nuget
|
|
|
|
- name: Restore dependencies
|
|
run: nuget restore NT8-SDK.sln
|
|
|
|
- name: Build with mono
|
|
run: msbuild NT8-SDK.sln /p:Configuration=Release /p:TargetFrameworkVersion=v4.8
|
|
|
|
- name: Run tests with mono
|
|
run: |
|
|
mono packages/NUnit.ConsoleRunner.3.16.3/tools/nunit3-console.exe tests/NT8.Core.Tests/bin/Release/net48/NT8.Core.Tests.dll
|
|
mono packages/NUnit.ConsoleRunner.3.16.3/tools/nunit3-console.exe tests/NT8.Integration.Tests/bin/Release/net48/NT8.Integration.Tests.dll
|
|
mono packages/NUnit.ConsoleRunner.3.16.3/tools/nunit3-console.exe tests/NT8.Performance.Tests/bin/Release/net48/NT8.Performance.Tests.dll |