mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-03 12:35:48 -05:00
Exercise signed Windows native Save dialogs, file contents and Hand panning
This commit is contained in:
1 parent
21b587ec5e
commit
5d909d6519
3 files changed
+175
-31
No files matched your search
@@ -1,36 +1,37 @@
|
||||
# Windows ARM64 build and smoke test.
|
||||
#
|
||||
# Release packages on arm64-windows are produced on x64 runners via cross-compilation
|
||||
# (target: aarch64-pc-windows-msvc) using MSVC's ARM64 cross tools, then installed and run
|
||||
# on GitHub Actions' native windows-11-arm runner.
|
||||
name: Windows ARM64
|
||||
|
||||
# Nightly on main and on pushes to `release` (dependency and runner-image drift shows up within a
|
||||
# day, and always before a release ships), and on PRs that change the Windows packaging itself.
|
||||
name: Validate the signed Windows portable
|
||||
on:
|
||||
schedule:
|
||||
- cron: "3 5 * * *"
|
||||
push:
|
||||
branches: [release]
|
||||
pull_request:
|
||||
paths:
|
||||
- .github/workflows/windows-arm64.yml
|
||||
- packaging/windows/**
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: windows-arm64-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
inputs:
|
||||
release:
|
||||
description: Release tag containing the signed Windows portable
|
||||
type: string
|
||||
required: true
|
||||
default: v0.25.1
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
windows-arm64:
|
||||
# Intentionally tracked at @main (not SHA-pinned) so org-wide CI improvements, security fixes, and build optimizations propagate without PR churn across all craftapp repos.
|
||||
uses: storytold/craft-common-actions/.github/workflows/windows-arm64.yml@main
|
||||
with:
|
||||
app-name: vectorcraft
|
||||
app-dir: VectorCraft
|
||||
install-relative-path: Programs/ArtCraft/VectorCraft
|
||||
install-scope: perUser
|
||||
validate:
|
||||
runs-on: windows-2022
|
||||
timeout-minutes: 14
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Verify portable signature and exercise the native Windows file pickers
|
||||
shell: pwsh
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
RELEASE_TAG: ${{ inputs.release }}
|
||||
run: |
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$download = Join-Path $env:RUNNER_TEMP 'vectorcraft-qa'
|
||||
New-Item -ItemType Directory -Path $download | Out-Null
|
||||
gh release download $env:RELEASE_TAG --pattern '*windows-x64-portable.zip' --dir $download
|
||||
$asset = Get-ChildItem $download -Filter '*.zip' | Select-Object -First 1
|
||||
Get-FileHash $asset.FullName
|
||||
Expand-Archive $asset.FullName "$download/expanded"
|
||||
$exe = Get-ChildItem "$download/expanded" -Recurse -Filter vectorcraft.exe | Select-Object -First 1
|
||||
$signature = Get-AuthenticodeSignature $exe.FullName
|
||||
if ($signature.Status -ne 'Valid') { throw "Authenticode: $($signature.Status) $($signature.StatusMessage)" }
|
||||
$signature.SignerCertificate | Format-Table Subject, Thumbprint
|
||||
python .github/qa-windows-saves.py $exe.FullName
|
||||
Reference in new issue
Block a user