build: support building with system fast_float (#8206)

This commit is contained in:
Yat Ho
2026-01-31 05:20:21 +08:00
committed by GitHub
parent 5c76b5b3d9
commit 3d09c4df4e
4 changed files with 23 additions and 10 deletions

View File

@@ -49,6 +49,7 @@ runs:
# Transmission-specific libraries with Fedora names
dnf install -y \
fast_float-devel \
fmt-devel \
google-crc32c-devel \
libb64-devel \
@@ -102,7 +103,6 @@ runs:
libcurl4-openssl-dev
libdeflate-dev
libevent-dev
libfmt-dev
libminiupnpc-dev
libnatpmp-dev
libpsl-dev
@@ -121,6 +121,7 @@ runs:
if [ ! "$DISTRO" = 'debian' ] || [ ! "$DISTRO_VERSION" = '11' ]; then
BASE_PACKAGES+=(
libfast-float-dev
libfmt-dev
libutfcpp-dev
)
@@ -214,6 +215,7 @@ runs:
# Transmission-specific libraries
BASE_PACKAGES+=(
crc32c
fast_float
fmt
libb64
libdeflate

View File

@@ -451,6 +451,7 @@ jobs:
cmake \
crc32c-dev \
curl-dev \
fast_float \
fmt-dev \
gettext-dev \
git \
@@ -776,6 +777,7 @@ jobs:
-DUSE_SYSTEM_DEFAULT=ON \
-DUSE_SYSTEM_CRC32C=OFF `# Not packaged in Debian 11` \
-DUSE_SYSTEM_DHT=OFF `# Not packaged in Debian 11` \
-DUSE_SYSTEM_FAST_FLOAT=OFF `# Not packaged in Debian 11` \
-DUSE_SYSTEM_FMT=OFF `# Debian 11 package too old` \
-DUSE_SYSTEM_SMALL=OFF `# Not packaged in Debian 11` \
-DUSE_SYSTEM_UTF8CPP=OFF `# Debian 11 package too old` \
@@ -955,10 +957,10 @@ jobs:
name: binaries-${{ github.job }}-${{ matrix.version }}
path: pfx/**/*
ubuntu-22-04-from-tarball:
ubuntu-24-04-from-tarball:
needs: [ make-source-tarball, what-to-make ]
if: ${{ needs.what-to-make.outputs.make-cli == 'true' || needs.what-to-make.outputs.make-daemon == 'true' || needs.what-to-make.outputs.make-gtk == 'true' || needs.what-to-make.outputs.make-qt == 'true' || needs.what-to-make.outputs.make-tests == 'true' || needs.what-to-make.outputs.make-utils == 'true' }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Show Configuration
run: |
@@ -976,7 +978,7 @@ jobs:
- name: Get Dependencies
uses: ./.github/actions/install-deps
with:
compiler: clang
compiler: clang # Workaround https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109717
enable-gtk: ${{ needs.what-to-make.outputs.make-gtk == 'true' }}
enable-qt: ${{ needs.what-to-make.outputs.make-qt == 'true' && 'qt5' || 'false' }}
use-sudo: true
@@ -998,6 +1000,8 @@ jobs:
-B obj \
-G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_CXX_COMPILER='clang++' \
-DCMAKE_C_COMPILER='clang' \
-DCMAKE_INSTALL_PREFIX=pfx \
-DENABLE_CLI=${{ (needs.what-to-make.outputs.make-cli == 'true') && 'ON' || 'OFF' }} \
-DENABLE_DAEMON=${{ (needs.what-to-make.outputs.make-daemon == 'true') && 'ON' || 'OFF' }} \