Every current admitted path now matches the integrated source tree exactly. Source-Sha: 9e49fdae916343feae29da254663474901d9b97e Policy-Sha: 9e49fdae916343feae29da254663474901d9b97e Tree-Digest: bcb4e35a0337aded0f27e77a3738a8356afcf7243ce3510c51e4d1684ebc298b
37 lines
1.4 KiB
YAML
37 lines
1.4 KiB
YAML
name: desktop-windows
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
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:
|
|
# windows-build is the commissioned native lane. Move this to
|
|
# windows-desktop only after that narrower toolchain is installed and proved.
|
|
runs-on: windows-build
|
|
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
|