Add MrTrust GUI and Gitea release build
Some checks failed
Build MrTrust / build-windows (push) Has been cancelled

This commit is contained in:
MrSphay
2026-05-15 23:47:10 +02:00
parent 7d4e9759e6
commit b58b6358f4
20 changed files with 1179 additions and 403 deletions

View File

@@ -0,0 +1,49 @@
name: Build MrTrust
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build-windows:
runs-on: windows
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Verify PowerShell scripts
shell: powershell
run: |
$scripts = @()
$scripts += @(Get-ChildItem . -Filter *.ps1)
$scripts += @(Get-ChildItem .\scripts -Filter *.ps1)
foreach ($script in $scripts) {
$tokens = $null
$errors = $null
[System.Management.Automation.Language.Parser]::ParseFile($script.FullName, [ref]$tokens, [ref]$errors) | Out-Null
if ($errors) { throw $errors }
}
- name: Build release ZIP
shell: powershell
run: |
$arguments = @("-ExecutionPolicy", "Bypass", "-File", ".\scripts\New-MrTrustRelease.ps1", "-Version", "0.1.0")
if ($env:MRTRUST_SIGNING_THUMBPRINT) {
$arguments += @("-SigningThumbprint", $env:MRTRUST_SIGNING_THUMBPRINT)
}
powershell @arguments
- name: Show package contents
shell: powershell
run: |
Get-ChildItem .\dist -Recurse | Select-Object FullName, Length
- name: Upload release artifact
uses: actions/upload-artifact@v3
with:
name: MrTrust-0.1.0
path: dist/MrTrust-0.1.0.zip