mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-28 17:29:31 +01:00
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch. SonarCloud coverage shard fails on pre-existing teardown crashes that also fail on main (tests::scan_probes::a_browse_through_a_link_and_dot_dot_reads_the_folder_the_system_names and tests::lifecycle_037::a_widget_gesture_cancels_if_its_target_moves_between_resolution_and_the_press, the GPU warm-up thread at process exit), fixed by #4697; reported to the LightCraft owner. Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
111 lines
4.7 KiB
YAML
111 lines
4.7 KiB
YAML
# Quick static checks for the release pipeline (seconds, no Rust build): workflow syntax,
|
|
# packaging shell/PowerShell scripts, and the Linux desktop/AppStream/Flatpak metadata.
|
|
name: Packaging lint
|
|
|
|
on:
|
|
push:
|
|
branches: [main, release]
|
|
paths: [".github/workflows/**", "packaging/**", "assets/app-icon/**", "docs/nightly-signing-policy.example.json", ".github/nightly-signing-policy.json", ".github/nightly-linux-signing-key.asc", "sonar-project.properties"]
|
|
pull_request:
|
|
paths: [".github/workflows/**", "packaging/**", "assets/app-icon/**", "docs/nightly-signing-policy.example.json", ".github/nightly-signing-policy.json", ".github/nightly-linux-signing-key.asc", "sonar-project.properties"]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: packaging-lint-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
lint:
|
|
# 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/packaging-lint.yml@main
|
|
with:
|
|
extra-checks-script: packaging/check-app-specific.sh
|
|
|
|
windows-install-folder:
|
|
runs-on: windows-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Harden runner
|
|
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
|
with:
|
|
egress-policy: audit
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
# The suite's WiX (5.0.2); the install-folder test needs no extensions.
|
|
- name: Install WiX
|
|
uses: storytold/craft-common-actions/actions/install-wix@main
|
|
with:
|
|
install-extensions: "false"
|
|
- name: Install-folder fallback and precedence (real MSI AppSearch)
|
|
shell: pwsh
|
|
run: |
|
|
./packaging/windows/test-install-folder.ps1 -Arch x64
|
|
./packaging/windows/test-install-folder.ps1 -Arch x86
|
|
|
|
windows-install-policy:
|
|
timeout-minutes: 10
|
|
name: Windows installation policy (no app build)
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Harden runner
|
|
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
|
with:
|
|
egress-policy: audit
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install the pinned packaging toolchain
|
|
shell: pwsh
|
|
run: |
|
|
$tools = Join-Path $env:RUNNER_TEMP 'craft-install-policy-wix'
|
|
dotnet tool install --tool-path $tools wix --version 5.0.2
|
|
if ($LASTEXITCODE -ne 0) { throw 'WiX installation failed.' }
|
|
$tools >> $env:GITHUB_PATH
|
|
$policy = Get-Content -Raw -LiteralPath packaging/windows/install-policy.json | ConvertFrom-Json
|
|
foreach ($extension in @($policy.extensions)) {
|
|
& (Join-Path $tools 'wix.exe') extension add -g "WixToolset.$extension.wixext/5.0.2"
|
|
if ($LASTEXITCODE -ne 0) { throw "WiX extension $extension installation failed." }
|
|
}
|
|
- name: Build and check non-executable installer fixtures
|
|
shell: pwsh
|
|
run: ./packaging/windows/test-install-policy.ps1 -OutputDirectory (Join-Path $env:RUNNER_TEMP 'craft-install-policy-tests')
|
|
|
|
nightly-source-contract:
|
|
name: Nightly source contracts (no build or signing)
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Harden runner
|
|
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
|
with:
|
|
egress-policy: audit
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Enforce nightly caller and synthetic packaging contracts
|
|
run: python3 packaging/nightly-tests.py
|
|
- name: Nightly Linux launchers and the Arch handoff (recorded argv)
|
|
run: |
|
|
bash packaging/linux/nightly-launcher-test.sh
|
|
bash packaging/linux/nightly-arch-tar-test.sh
|
|
|
|
nightly-windows-synthetic:
|
|
name: Nightly Windows packaging contracts (no app build)
|
|
runs-on: windows-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Harden runner
|
|
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
|
with:
|
|
egress-policy: audit
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Nightly package and signing contracts
|
|
shell: pwsh
|
|
run: |
|
|
./packaging/windows/nightly-package-tests.ps1 -FixtureRoot $env:RUNNER_TEMP
|
|
./packaging/windows/nightly-signing-tests.ps1 -FixtureRoot $env:RUNNER_TEMP
|