mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 11:23:21 +00:00
Change: release with (much) newer versions of dependencies for Generic Linux (#10484)
This commit is contained in:
parent
ea90fa24f8
commit
16352559f2
66
.github/workflows/release-linux.yml
vendored
66
.github/workflows/release-linux.yml
vendored
@ -23,30 +23,69 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
tar -xf source.tar.gz --strip-components=1
|
tar -xf source.tar.gz --strip-components=1
|
||||||
|
|
||||||
|
- name: Enable vcpkg cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: /vcpkg/installed
|
||||||
|
key: ubuntu-20.04-vcpkg-release-0 # Increase the number whenever dependencies are modified
|
||||||
|
restore-keys: |
|
||||||
|
ubuntu-20.04-vcpkg-release
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
echo "::group::Install dependencies"
|
echo "::group::Install system dependencies"
|
||||||
|
# ICU is used as vcpkg fails to install ICU. Other dependencies
|
||||||
|
# are needed either for vcpkg or for the packages installed with
|
||||||
|
# vcpkg.
|
||||||
yum install -y \
|
yum install -y \
|
||||||
fontconfig-devel \
|
|
||||||
freetype-devel \
|
|
||||||
libcurl-devel \
|
|
||||||
libicu-devel \
|
libicu-devel \
|
||||||
libpng-devel \
|
perl-IPC-Cmd \
|
||||||
lzo-devel \
|
|
||||||
SDL2-devel \
|
|
||||||
wget \
|
wget \
|
||||||
xz-devel \
|
zip \
|
||||||
zlib-devel \
|
|
||||||
# EOF
|
# EOF
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
# We use vcpkg for our dependencies, to get more up-to-date version.
|
||||||
|
echo "::group::Install vcpkg and dependencies"
|
||||||
|
|
||||||
|
# We do a little dance to make sure we copy the cached install folder
|
||||||
|
# into our new clone.
|
||||||
|
git clone --depth=1 https://github.com/microsoft/vcpkg /vcpkg-clone
|
||||||
|
if [ -e /vcpkg/installed ]; then
|
||||||
|
mv /vcpkg/installed /vcpkg-clone/
|
||||||
|
rm -rf /vcpkg
|
||||||
|
fi
|
||||||
|
mv /vcpkg-clone /vcpkg
|
||||||
|
|
||||||
|
(
|
||||||
|
cd /vcpkg
|
||||||
|
./bootstrap-vcpkg.sh -disableMetrics
|
||||||
|
|
||||||
|
# Make Python3 available for other packages.
|
||||||
|
./vcpkg install python3
|
||||||
|
ln -sf $(pwd)/installed/x64-linux/tools/python3/python3.[0-9][0-9] /usr/bin/python3
|
||||||
|
|
||||||
|
./vcpkg install \
|
||||||
|
curl[http2] \
|
||||||
|
fontconfig \
|
||||||
|
freetype \
|
||||||
|
liblzma \
|
||||||
|
libpng \
|
||||||
|
lzo \
|
||||||
|
sdl2 \
|
||||||
|
zlib \
|
||||||
|
# EOF
|
||||||
|
)
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
# The yum variant of fluidsynth depends on all possible audio drivers,
|
# The yum variant of fluidsynth depends on all possible audio drivers,
|
||||||
# like jack, ALSA, pulseaudio, etc. This is not really useful for us,
|
# like jack, ALSA, pulseaudio, etc. This is not really useful for us,
|
||||||
# as we route the output of fluidsynth back via our sound driver, and
|
# as we route the output of fluidsynth back via our sound driver, and
|
||||||
# as such do not use these audio driver outputs at all. So instead,
|
# as such do not use these audio driver outputs at all.
|
||||||
# we compile fluidsynth ourselves, with as little dependencies as
|
# The vcpkg variant of fluidsynth depends on ALSA. Similar issue here.
|
||||||
# possible. This currently means it picks up SDL2, but this is fine,
|
# So instead, we compile fluidsynth ourselves, with as few
|
||||||
# as we need SDL2 anyway.
|
# dependencies as possible. This currently means it picks up SDL2, but
|
||||||
|
# this is fine, as we need SDL2 anyway.
|
||||||
echo "::group::Install fluidsynth"
|
echo "::group::Install fluidsynth"
|
||||||
wget https://github.com/FluidSynth/fluidsynth/archive/v2.1.6.tar.gz
|
wget https://github.com/FluidSynth/fluidsynth/archive/v2.1.6.tar.gz
|
||||||
tar xf v2.1.6.tar.gz
|
tar xf v2.1.6.tar.gz
|
||||||
@ -70,6 +109,7 @@ jobs:
|
|||||||
|
|
||||||
echo "::group::CMake"
|
echo "::group::CMake"
|
||||||
cmake ${GITHUB_WORKSPACE} \
|
cmake ${GITHUB_WORKSPACE} \
|
||||||
|
-DCMAKE_TOOLCHAIN_FILE=/vcpkg/scripts/buildsystems/vcpkg.cmake \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DOPTION_PACKAGE_DEPENDENCIES=ON \
|
-DOPTION_PACKAGE_DEPENDENCIES=ON \
|
||||||
# EOF
|
# EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user