Skip to content

Update iproute2, python3-pytz and 1 more modules #392

Update iproute2, python3-pytz and 1 more modules

Update iproute2, python3-pytz and 1 more modules #392

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Run pre-commit hooks
uses: pre-commit/[email protected]
flatpak:
name: Flatpak
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-44
options: --privileged
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Flatpak bundle
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: org.endlessos.Key.Devel.flatpak
manifest-path: build-aux/flatpak/org.endlessos.Key.Devel.json
cache: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
cache-key: endless-key-${{ github.sha }}
- name: Install dbus-daemon environment and run it
run: |
# Need dbus-daemon to run flatpak app later
# https://discussion.fedoraproject.org/t/cannot-run-flatpaks-in-a-fedora-container/73867/2
dnf install -y dbus-daemon
mkdir /run/dbus
dbus-daemon --system
- name: Install org.flatpak.Builder for the consistent appstream-util
run: |
flatpak install flathub org.flatpak.Builder -y
# We use appstreamcli, rather than appstream-util [1] to validate the
# metainfo to fix the validation error [2]. However, Flathub still use the
# flatpak org.flatpak.Builder's appstream-util from Flathub to validate
# the metainfo. To avoid the validation error on Flathub, like the caption
# length issue [3], use the consistent appstream-util for the validation.
# [1]: https://github.com/endlessm/endless-key-flatpak/pull/33
# [2]: https://github.com/endlessm/endless-key-flatpak/issues/34
# [3]: https://github.com/endlessm/endless-key-flatpak/issues/66
- name: Validate metainfo
run: |
flatpak run \
--env=G_DEBUG=fatal-criticals \
--command=appstream-util \
org.flatpak.Builder \
validate flatpak_app/files/share/metainfo/org.endlessos.Key.Devel.metainfo.xml