Skip to content

Commit

Permalink
Merge pull request #82 from rmartin16/install-package
Browse files Browse the repository at this point in the history
 Ensure Linux System packages can be installed
  • Loading branch information
freakboy3742 authored Jan 14, 2024
2 parents 68f78e3 + cc90fde commit a31c548
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/app-build-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,22 @@ jobs:
xvfb-run briefcase run linux system
briefcase package linux system --adhoc-sign
bash -c "sudo apt -y install ./dist/*_0.0.1-1~ubuntu-*_amd64.deb"
- name: Build Linux System Project (Debian, Dockerized)
if: >
startsWith(inputs.runner-os, 'ubuntu')
&& contains(fromJSON('["", "Linux"]'), inputs.target-platform)
&& contains(fromJSON('["", "system"]'), inputs.target-format)
working-directory: ${{ steps.create.outputs.project-path }}
run: |
briefcase create linux system --target debian:bullseye \
briefcase create linux system --target debian:bookworm \
${{ steps.output-format.outputs.template-override }}
briefcase build linux system --target debian:bullseye
briefcase package linux system --target debian:bullseye --adhoc-sign
briefcase build linux system --target debian:bookworm
briefcase package linux system --target debian:bookworm --adhoc-sign
docker run --volume $(pwd)/dist:/dist debian:bookworm \
sh -c "apt update && apt -y install /dist/*_0.0.1-1~debian-*_amd64.deb"
- name: Build Linux System Project (Fedora, Dockerized)
if: >
Expand All @@ -252,6 +257,9 @@ jobs:
briefcase build linux system --target fedora:39
briefcase package linux system --target fedora:39 --adhoc-sign
docker run --volume $(pwd)/dist:/dist fedora:39 \
sh -c "dnf -y install /dist/*-0.0.1-1.fc*.x86_64.rpm"
- name: Build Linux System Project (Arch, Dockerized)
if: >
startsWith(inputs.runner-os, 'ubuntu')
Expand All @@ -264,6 +272,9 @@ jobs:
briefcase build linux system --target archlinux:latest
briefcase package linux system --target archlinux:latest --adhoc-sign
docker run --volume $(pwd)/dist:/dist archlinux \
sh -c "pacman -Sy && pacman --noconfirm -U /dist/*-0.0.1-1-x86_64.pkg.tar.zst"
- name: Build Linux System Project (openSUSE, Dockerized)
if: >
startsWith(inputs.runner-os, 'ubuntu')
Expand All @@ -276,6 +287,9 @@ jobs:
briefcase build linux system --target opensuse/tumbleweed:latest
briefcase package linux system --target opensuse/tumbleweed:latest --adhoc-sign
docker run --volume $(pwd)/dist:/dist opensuse/tumbleweed \
sh -c "zypper --non-interactive --no-gpg-checks install /dist/*-0.0.1-1.x86_64.rpm"
- name: Build AppImage Project
# 2023-09-11 AppImage dropped to "best effort" support.
#
Expand Down

0 comments on commit a31c548

Please sign in to comment.