The public tree and its history contain only the listed paths. Earlier projection history remains preserved internally. Source-Sha: 913fde029b935671833254797f0f20f1eb9fabba Policy-Sha: 913fde029b935671833254797f0f20f1eb9fabba Tree-Digest: 180ae530c1058a2a5c89837bdce2d323ae83e669e38590ca72e75b8d92b7262f
39 lines
1.4 KiB
YAML
39 lines
1.4 KiB
YAML
name: desktop-windows
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
runner:
|
|
description: Native Windows runner label with Qt 6, MSVC, Rust, Go and Node
|
|
required: true
|
|
default: windows-desktop
|
|
version:
|
|
description: Desktop version matching the checked-out Cargo crate (three or four parts)
|
|
required: true
|
|
default: '0.2.9'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
desktop:
|
|
runs-on: ${{ github.event.inputs.runner }}
|
|
defaults:
|
|
run:
|
|
shell: powershell
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
- name: Build and stage the complete native Desktop payload
|
|
env:
|
|
DESKTOP_VERSION: ${{ github.event.inputs.version }}
|
|
run: |
|
|
$ErrorActionPreference = 'Stop'
|
|
$output = Join-Path $env:RUNNER_TEMP ('redflag-desktop-' + [guid]::NewGuid().ToString())
|
|
& ./installer/windows/build-desktop.ps1 -OutputDirectory $output -Version $env:DESKTOP_VERSION
|
|
if ($LASTEXITCODE -ne 0) { throw 'Native Desktop payload failed.' }
|
|
"DESKTOP_PAYLOAD=$output" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
|
|
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
|
|
with:
|
|
name: redflag-desktop-windows-amd64
|
|
path: ${{ env.DESKTOP_PAYLOAD }}
|
|
if-no-files-found: error
|
|
retention-days: 30
|