Publish and sign packages for ubuntu 24.10 (Oracular) #69
Workflow file for this run
This file contains 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: check-packages | |
on: [push, pull_request] | |
jobs: | |
check-sigs: | |
runs-on: ubuntu-latest | |
container: debian:bullseye | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Debian packaging dependencies | |
run: apt-get update && apt-get install -y gpg | |
- name: Verify signatures on all Release files | |
run: | | |
gpg --import repo/public/fpf-apt-tools-archive-keyring.gpg | |
for i in repo/public/dists/*/Release; do gpg --verify "${i}.gpg" "$i"; done | |
install-deb: | |
name: "Install on ${{ matrix.distro }} ${{matrix.version}}" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- target: ubuntu-20.04 | |
distro: ubuntu | |
version: "20.04" | |
version-name: focal | |
- target: ubuntu-22.04 | |
distro: ubuntu | |
version: "22.04" | |
version-name: jammy | |
- target: ubuntu-23.10 | |
distro: ubuntu | |
version: "23.10" | |
version-name: mantic | |
- target: ubuntu-24.04 | |
distro: ubuntu | |
version: "24.04" | |
version-name: noble | |
- target: ubuntu-24.10 | |
distro: ubuntu | |
version: "24.10" | |
version-name: oracular | |
- target: debian-bullseye | |
distro: debian | |
version: bullseye | |
version-name: bullseye | |
- target: debian-bookworm | |
distro: debian | |
version: bookworm | |
version-name: bookworm | |
- target: debian-trixie | |
distro: debian | |
version: trixie | |
version-name: trixie | |
steps: | |
- name: Checkout dangerzone repo | |
uses: actions/checkout@v4 | |
with: | |
repository: freedomofpress/dangerzone | |
path: main | |
- name: Checkout apt-tools-prod repo | |
uses: actions/checkout@v4 | |
with: | |
path: deb | |
lfs: 'true' | |
- name: update version from the package | |
run: | | |
echo ./deb/dangerzone/${{ matrix.version-name }}/dangerzone_*_all.deb | sed 's/.*_\(.*\)-[^-]*_.*\.deb/\1/' > ./main/share/version.txt | |
- name: cp dangerzone .deb | |
run: | | |
mkdir "./main/deb_dist" | |
cp ./deb/dangerzone/${{ matrix.version-name }}/dangerzone_*_all.deb ./main/deb_dist/. | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Create end-user environment on (${{ matrix.target }}) | |
working-directory: main | |
run: | | |
./dev_scripts/env.py --distro ${{ matrix.distro }} \ | |
--version ${{ matrix.version }} \ | |
build | |
- name: Run a test command | |
working-directory: main | |
run: | | |
./dev_scripts/env.py --distro ${{ matrix.distro }} \ | |
--version ${{ matrix.version }} \ | |
run dangerzone-cli dangerzone/tests/test_docs/sample-pdf.pdf | |
- name: Check that the Dangerzone GUI imports work | |
working-directory: main | |
run: | | |
./dev_scripts/env.py --distro ${{ matrix.distro }} \ | |
--version ${{ matrix.version }} \ | |
run dangerzone --help |