Skip to content

Commit

Permalink
github/workflows: Fix Fedora 39 DNF
Browse files Browse the repository at this point in the history
- Check latest gnome-shell-extension-no-overview
- Add various configure options
  • Loading branch information
fujiwarat committed Aug 9, 2023
1 parent e225c11 commit f05c12d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
include:
- container: fedora:38
ucd_dir: /usr/share/unicode/ucd
- container: fedora:38
ucd_dir: /usr/share/unicode/ucd
test_config: '--disable-wayland'
- container: fedora:38
ucd_dir: /usr/share/unicode/ucd
test_config: '--disable-appindicator'
- container: fedora:39
ucd_dir: /usr/share/unicode/ucd
- container: ubuntu:jammy
Expand Down Expand Up @@ -96,6 +102,8 @@ jobs:
glib2-doc
# for ibus-keypress
FEDORA_PACKAGES_CI_KEY: >
gnome-shell
gnome-shell-extension-no-overview
libXtst-devel
# for gcc -fanalyzer -fsanitize=address -fsanitize=leak options
# xkeyboard-config-devel to make ibus/engine/simle.xml.in
Expand All @@ -121,16 +129,23 @@ jobs:
;;
fedora*)
cat /etc/fedora-release
echo "dnf -y update"
dnf -y update
echo "dnf -y install git which"
dnf -y install git which
DNF=dnf5
if test "${{ matrix.container }}" = "fedora:38" ; then
DNF=dnf
fi
echo "$DNF -y update"
$DNF -y update
echo "$DNF -y install git which"
$DNF -y install git which
PACKAGES=$(echo "$FEDORA_PACKAGES_MAKE" | tr -d '\n')
PACKAGES=$(echo "$PACKAGES $FEDORA_PACKAGES_GTKDOC" | tr -d '\n')
PACKAGES=$(echo "$PACKAGES $FEDORA_PACKAGES_CI_KEY" | tr -d '\n')
PACKAGES=$(echo "$PACKAGES $FEDORA_PACKAGES_DISTRO" | tr -d '\n')
echo "dnf -y install $PACKAGES"
dnf -y install $PACKAGES
echo "$DNF -y install $PACKAGES"
$DNF -y install $PACKAGES
rpm -q gnome-shell
V=$(rpm -q gnome-shell | sed -e 's/gnome-shell-\([0-9]*\)[.-~].*/\1/')
grep $V /usr/share/gnome-shell/extensions/no-overview@fthx/metadata.json
;;
*)
echo "Not supported ${{ matrix.container }}"
Expand Down Expand Up @@ -167,6 +182,7 @@ jobs:
--with-python=/usr/bin/python3
--with-ucd-dir=${{ matrix.ucd_dir }}
--enable-install-tests
${{ matrix.test_config }}
- name: Run make
# Set the cutom DESTDIR because the default DESTDIR
Expand All @@ -183,6 +199,7 @@ jobs:
--with-python=/usr/bin/python3
--with-ucd-dir=${{ matrix.ucd_dir }}
--enable-install-tests
${{ matrix.test_config }}
"
DISABLE_GUI_TESTS="
ibus-compose ibus-keypress test-stress xkb-latin-layouts
Expand Down
7 changes: 4 additions & 3 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ cd "$srcdir"
rpm -q $FEDORA_PKG1 || exit 1
rpm -q $FEDORA_PKG2 || exit 1
rpm -q $FEDORA_PKG3 || exit 1
dnf update --assumeno $FEDORA_PKG1 || exit 1
dnf update --assumeno $FEDORA_PKG2 || exit 1
dnf update --assumeno $FEDORA_PKG3 || exit 1
(grep -qE '37|38' /etc/fedora-release) && DNF=dnf || DNF=dnf5
$DNF update --assumeno $FEDORA_PKG1 || exit 1
$DNF update --assumeno $FEDORA_PKG2 || exit 1
$DNF update --assumeno $FEDORA_PKG3 || exit 1
}
}

Expand Down

0 comments on commit f05c12d

Please sign in to comment.