BlueGit

ict rusty-teams

Files

rusty-teams / .github / workflows / packaging-lint.yml

packaging-lint.yml

feat(packaging): Linux AppImage, deb, rpm and Flatpak
metis Samuel David Merlin Kemper · pushed by metis · 2 weeks ago
228f36c5 History
packaging-lint.yml 1.7 KiB Download Raw
1# Quick static checks for the Linux packaging (seconds, no Rust build): the packaging shell
2# scripts, the desktop entry and AppStream metadata, AppRun's desktop integration and the
3# verified AppImage tool downloads. The packages themselves are built in build.yml.
4name: Packaging lint
5
6on:
7 push:
8 branches: [main]
9 paths: [".github/workflows/packaging-lint.yml", "packaging/**"]
10 pull_request:
11 paths: [".github/workflows/packaging-lint.yml", "packaging/**"]
12 workflow_dispatch:
13
14permissions:
15 contents: read
16
17concurrency:
18 group: ${{ github.workflow }}-${{ github.ref }}
19 cancel-in-progress: true
20
21jobs:
22 lint:
23 name: Linux packaging
24 # Same Ubuntu as the package build in build.yml, so the validators match.
25 runs-on: ubuntu-22.04
26 timeout-minutes: 10
27 steps:
28 - uses: actions/checkout@v6
29
30 - name: Install validators
31 run: |
32 sudo apt-get update
33 sudo apt-get install --no-install-recommends -y shellcheck desktop-file-utils appstream
34
35 - name: shellcheck
36 run: shellcheck packaging/env.sh packaging/linux/*.sh packaging/linux/AppRun
37
38 - name: Desktop entry and AppStream metadata
39 run: |
40 desktop-file-validate packaging/linux/rusty-teams.desktop
41 metainfo="$RUNNER_TEMP/io.github.danieldaeschle.RustyTeams.metainfo.xml"
42 sed -e 's/@VERSION@/0.0.0/' -e "s/@DATE@/$(date -u +%Y-%m-%d)/" \
43 packaging/linux/rusty-teams.metainfo.xml.in >"$metainfo"
44 appstreamcli validate --no-net --explain "$metainfo"
45
46 - name: AppRun desktop integration
47 run: bash packaging/linux/apprun-test.sh
48
49 - name: Verified AppImage inputs
50 run: bash packaging/linux/verified-download-test.sh