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 @@ -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 :
You can’t perform that action at this time.
0 commit comments