mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Install libgl1-mesa-dev when testing with Travis CI
Compiling SDL2_ttf on Ubuntu in Travis CI requires libGL.so, which is included in libgl1-mesa-dev. Refer to https://discourse.libsdl.org/t/cross-compiling-sdl-ttf/18773.
This commit is contained in:
+8
-1
@@ -17,7 +17,14 @@ env:
|
||||
- secure: MJhmVnQ2IM7+sVmc3vU4ndKOcQgLLeHUPW3qaQBQHKQmvoswCwQK60N17uSgWn1Ln8teqvSRHq4KclIjdMHI+VuQXJHQKHDgjcYbHxwmc3AM1Whnp0XB44ksKUmD109BGWSfZQxzF+6dA+YNOQ+mti+bpydMu8n2FMVjA/SXwQ8=
|
||||
|
||||
install:
|
||||
- if [[ $CI_BUILD_FEATURES != *"bundled"* ]]; then bash scripts/travis-install-sdl2.sh; fi
|
||||
- |
|
||||
if [[ $CI_BUILD_FEATURES != *"bundled"* ]]; then
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||
sudo apt-get update
|
||||
sudo apt-get install --assume-yes libgl1-mesa-dev
|
||||
fi
|
||||
bash scripts/travis-install-sdl2.sh
|
||||
fi
|
||||
|
||||
before_script:
|
||||
- shopt -s expand_aliases
|
||||
|
||||
Reference in New Issue
Block a user