ci: Build and install Dangerzone RPMs

Add some Fedora CI jobs that build RPMs, install them in an end-user
environment, and make a simple conversion and GUI import check. These
are basically smoke tests for Fedora, similar to the ones we have for
Debian.
This commit is contained in:
Alex Pyrgiotis 2024-01-17 13:26:53 +02:00
parent d54ef875a6
commit 3bc3c6c120
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -163,3 +163,46 @@ jobs:
./dev_scripts/env.py --distro ${{ matrix.distro }} \
--version ${{ matrix.version }} \
run dangerzone --help
build-install-rpm:
name: "Build and install a Dangerzone RPM on Fedora ${{matrix.version}}"
runs-on: ubuntu-latest
strategy:
matrix:
include:
- version: "38"
- version: "39"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build dev environment
run: |
./dev_scripts/env.py --distro fedora --version ${{ matrix.version }} \
build-dev
- name: Build Dangerzone image
run: |
./dev_scripts/env.py --distro fedora --version ${{ matrix.version }} \
run --dev --no-gui \
bash -c 'cd /home/user/dangerzone && python3 ./install/common/build-image.py'
- name: Build Dangerzone .rpm
run: |
./dev_scripts/env.py --distro fedora --version ${{ matrix.version }} \
run --dev --no-gui ./dangerzone/install/linux/build-rpm.py
- name: Build end-user environment
run: |
./dev_scripts/env.py --distro fedora --version ${{ matrix.version }} \
build --download-pyside6
- name: Run a test command
run: |
./dev_scripts/env.py --distro fedora --version ${{ matrix.version }} \
run dangerzone-cli dangerzone/tests/test_docs/sample-pdf.pdf
- name: Check that the Dangerzone GUI imports work
run: |
./dev_scripts/env.py --distro fedora --version ${{ matrix.version }} \
run dangerzone --help