Skip to content

Commit c5f1bff

Browse files
committed
use non-snap firefox
1 parent f3a5c9e commit c5f1bff

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/test_suite_linux_develop.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,24 @@ jobs:
103103
- name: Extract Webots
104104
run: tar xjf artifact/webots-*-x86-64*.tar.bz2 -C artifact
105105
- name: Install Webots Dependencies
106-
run: sudo scripts/install/linux_test_dependencies.sh
106+
run: |
107+
sudo scripts/install/linux_test_dependencies.sh
108+
# On Ubuntu 24.04, the default snap-based Firefox does not play well with headless environments
109+
if [[ $UBUNTU_VERSION == "24.04" ]]; then
110+
snap remove firefox
111+
add-apt-repository -y ppa:mozillateam/ppa
112+
echo '
113+
Package: *
114+
Pin: release o=LP-PPA-mozillateam
115+
Pin-Priority: 1001
116+
117+
Package: firefox
118+
Pin: version 1:1snap*
119+
Pin-Priority: -1
120+
' | tee /etc/apt/preferences.d/mozilla-firefox
121+
apt update
122+
apt install -y firefox
123+
fi
107124
- name: Set up Python 3.9
108125
uses: actions/setup-python@v2
109126
with:

0 commit comments

Comments
 (0)