File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments