Skip to content

Commit 4884ed8

Browse files
committed
copy previous commit to main CI script
1 parent c5f1bff commit 4884ed8

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/test_suite_linux.yml

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

0 commit comments

Comments
 (0)