ci: sposta self-test.yml e build-nsInnoUnp.yml in .gitea/workflows

This commit is contained in:
Simone
2026-05-17 00:29:53 +02:00
parent aa7e375e5d
commit efd39c2279
2 changed files with 2 additions and 5 deletions
+46
View File
@@ -0,0 +1,46 @@
# CI Self-Test (smoke) — Local CI/CD System
#
# On-demand smoke test that validates the full pipeline end-to-end:
# VM clone -> start -> IP detect -> trivial build -> artifact collect -> destroy
#
# Trigger: workflow_dispatch only (never runs on push/tag).
# Both jobs are independent — a failure in one does not cancel the other.
#
# Prerequisites (must be in place before running):
# - Runner labels: windows-build:host and linux-build:host active
# - Templates at GITEA_CI_TEMPLATE_PATH / GITEA_CI_LINUX_TEMPLATE_PATH
# - Snapshots BaseClean (Windows) and BaseClean-Linux (Linux) exist
# - ci-report-ip.service enabled in LinuxBuild2404 template
name: CI Self-Test (smoke)
on:
workflow_dispatch:
jobs:
smoke-windows:
runs-on: windows-build
steps:
- uses: Simone/local-ci-system/.gitea/actions/local-ci-build@main
with:
# Trivial no-op build: write a marker file to the CI output directory.
# The Windows build VM maps C:\CI\output as the artifact source.
build-command: 'New-Item -ItemType Directory -Path C:\CI\output -Force | Out-Null; Set-Content C:\CI\output\smoke.txt "smoke-ok"'
artifact-source: 'C:\CI\output'
guest-os: 'Windows'
job-id-suffix: 'smoke-win'
artifact-name: 'smoke-windows-${{ github.run_id }}'
smoke-linux:
runs-on: linux-build
steps:
- uses: Simone/local-ci-system/.gitea/actions/local-ci-build@main
with:
# Trivial no-op build: write a marker file to the CI output directory.
# The Linux build VM uses /opt/ci/output as the artifact source.
build-command: 'mkdir -p /opt/ci/output && echo smoke-ok > /opt/ci/output/smoke.txt'
artifact-source: '/opt/ci/output'
guest-os: 'Linux'
job-id-suffix: 'smoke-linux'
artifact-name: 'smoke-linux-${{ github.run_id }}'