build: Validate the appdata file #68
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Test | |
| on: | |
| push: | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install AppStream CLI tools | |
| run: sudo apt-get install -y appstream | |
| - name: Install dependencies for compiling OpenSSH | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential zlib1g-dev libssl-dev libncurses5-dev | |
| # The OpenSSH version in ubuntu-latest (24.04) is too old | |
| - name: Compile OpenSSH from source | |
| run: | | |
| wget https://ftp.nluug.nl/pub/OpenBSD/OpenSSH/portable/openssh-9.9p2.tar.gz | |
| tar -xzvf openssh-9.9p2.tar.gz | |
| cd openssh-9.9p2 | |
| ./configure --without-pie | |
| make | |
| sudo make install | |
| - name: Run tests | |
| run: cargo test -- --test-threads=1 | |
| - name: Validate AppData file | |
| run: appstreamcli validate --pedantic data/studio.planetpeanut.Twinkle.appdata.xml |