1c39701534
- All 3 workflows: pwsh -> powershell (host requires PS 5.1, not Core 7+) - workflow-example.yml: replace GITHUB_WORKSPACE-relative ciScriptsDir with hardcoded host path; use SSH alias URL (host-clone mode) instead of HTTP - docs: add WORKFLOW-AUTHORING.md reference for AI and developers
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
# Build (Local CI) — pipeline per nsis-plugin-nsinnounp
|
|
#
|
|
# Eseguito dal runner locale windows-build su WS1-W11.
|
|
# L'orchestratore (Invoke-CIJob.ps1) gira sull'host e:
|
|
# 1. Clona il repo sull'host (con submoduli)
|
|
# 2. Crea una VM efimera da snapshot BaseClean
|
|
# 3. Copia il sorgente nella VM via WinRM (zip transfer)
|
|
# 4. Esegue python build_plugin.py nella VM
|
|
# 5. Raccoglie artifacts.zip sull'host
|
|
# 6. Distrugge la VM
|
|
#
|
|
# Trigger: push su tag v*, oppure run manuale
|
|
|
|
name: Build (Local CI)
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-build
|
|
|
|
steps:
|
|
- name: Run CI Job
|
|
shell: powershell
|
|
run: |
|
|
& 'N:\Code\Workspace\Local-CI-CD-System\scripts\Invoke-CIJob.ps1' `
|
|
-JobId '${{ github.run_id }}' `
|
|
-RepoUrl 'ssh://gitea-ci/Simone/nsis-plugin-nsinnounp.git' `
|
|
-Branch '${{ github.ref_name }}' `
|
|
-Commit '${{ github.sha }}' `
|
|
-TemplatePath $env:GITEA_CI_TEMPLATE_PATH `
|
|
-Submodules `
|
|
-BuildCommand 'python build_plugin.py --final --dist-dir dist' `
|
|
-GuestArtifactSource 'dist'
|
|
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: nsis-plugin-nsinnounp-${{ github.ref_name }}
|
|
path: F:\CI\Artifacts\${{ github.run_id }}\artifacts.zip
|
|
if-no-files-found: error
|