CI/CD: Fix GHA YAML negation syntax & Introduce -TriggerOnly parameter in build.ps1

This commit is contained in:
ospab 2026-05-14 23:10:03 +03:00
parent 6140e1e744
commit 882ef6f337
2 changed files with 13 additions and 3 deletions

View File

@ -105,11 +105,11 @@ jobs:
uses: swatinem/rust-cache@v2 uses: swatinem/rust-cache@v2
- name: Setup local MUSL linker dependencies - name: Setup local MUSL linker dependencies
if: matrix.os == 'ubuntu-latest' && !matrix.use_cross if: ${{ matrix.os == 'ubuntu-latest' && !matrix.use_cross }}
run: sudo apt-get update && sudo apt-get install -y musl-tools run: sudo apt-get update && sudo apt-get install -y musl-tools
- name: Execute Standard Native Compilation - name: Execute Standard Native Compilation
if: !matrix.use_cross if: ${{ !matrix.use_cross }}
run: cargo build --release --target ${{ matrix.target }} --bin ostp run: cargo build --release --target ${{ matrix.target }} --bin ostp
- name: Execute Specialized Cross-Compilation - name: Execute Specialized Cross-Compilation

View File

@ -1,6 +1,7 @@
# OSTP High-Performance Cross-Platform Build & Release Pipeline # OSTP High-Performance Cross-Platform Build & Release Pipeline
param( param(
[switch]$Flatten # Consolidate raw uncompressed binaries with arch suffixes under dist/release/ [switch]$Flatten, # Consolidate raw uncompressed binaries with arch suffixes under dist/release/
[switch]$TriggerOnly # Bypasses all local builds to instantly execute global cloud CI/CD tag injection
) )
$ProjectRoot = Split-Path -Parent $PSScriptRoot $ProjectRoot = Split-Path -Parent $PSScriptRoot
@ -39,6 +40,11 @@ New-Item -ItemType Directory -Force -Path $DistDir | Out-Null
# Collection for dynamically mapping successful build archives # Collection for dynamically mapping successful build archives
$ReleaseArchives = @() $ReleaseArchives = @()
# ---------------------------------------------------------------------
# CONDITIONAL BUILD SUITE execution
# ---------------------------------------------------------------------
if (-not $TriggerOnly) {
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
# PHASE 1: WINDOWS COMPILATION MATRIX (Native Host) # PHASE 1: WINDOWS COMPILATION MATRIX (Native Host)
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
@ -177,6 +183,10 @@ if ($ReleaseArchives.Count -gt 0) {
exit 1 exit 1
} }
} else {
Write-Output "`n--> [TRIGGER ONLY MODE] Bypassing all local compilations as requested."
}
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
# PHASE 3: TRIGGER GLOBAL CI/CD RELEASE PIPELINE (Via Git Tag) # PHASE 3: TRIGGER GLOBAL CI/CD RELEASE PIPELINE (Via Git Tag)
# --------------------------------------------------------------------- # ---------------------------------------------------------------------