# 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/**"] pull_request: paths: [".github/workflows/**", "packaging/**", "assets/app-icon/**"] 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 freebsd-layout: # The FreeBSD package layout, with stub binaries standing in for the build: RFC-0018 rule 1.9 # puts figcraft-cli's man pages and its bash, zsh and fish completions in it. runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: FreeBSD package layout (dry run) run: | CARGO_TARGET_DIR="$RUNNER_TEMP/figcraft-target" bash packaging/freebsd/package.sh --dry-run listing="$(tar -tzf "$RUNNER_TEMP"/figcraft-target/freebsd-package/figcraft-*-freebsd-x86_64.tar.gz)" for f in man/man1/figcraft-cli.1 share/bash-completion/completions/figcraft-cli \ share/zsh/site-functions/_figcraft-cli share/fish/vendor_completions.d/figcraft-cli.fish; do grep -q "/$f$" <<<"$listing" || { echo "::error::$f is missing from the FreeBSD package"; exit 1; } done 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@v2.22.4 with: egress-policy: audit - uses: actions/checkout@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')