mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
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:
parent
d54ef875a6
commit
3bc3c6c120
1 changed files with 43 additions and 0 deletions
43
.github/workflows/ci.yml
vendored
43
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue