Update tdlib_ping workflow and README to enhance CGO_CFLAGS configuration for building TDLib. Clarify the inclusion of the build directory in the CFLAGS to improve user experience when compiling from source.
Publish mtproxy_checker Docker image / test (push) Successful in 7s
Build tdlib_ping (linux/amd64) / build-tdlib-ping (push) Failing after 6m14s
Publish mtproxy_checker Docker image / build-and-push (push) Successful in 50s

This commit is contained in:
Denozordec
2026-04-11 16:54:44 +07:00
parent 15ca7ad10e
commit f438984e3d
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -71,8 +71,8 @@ jobs:
fi
cd "${ROOT}"
export CGO_ENABLED=1
# Корень клона td-src: там лежит td/telegram/td_json_client.h для #include <td/telegram/...>
export CGO_CFLAGS="-I${TDLIB_ROOT}"
# Исходники: td/telegram/td_json_client.h; сгенерированные заголовки (tdjson_export.h): build/td/telegram/
export CGO_CFLAGS="-I${TDLIB_ROOT} -I${TDLIB_ROOT}/build"
export CGO_LDFLAGS="-L${DIST} -Wl,-rpath,\$ORIGIN -ltdjson"
go build -tags=tdlib -trimpath -ldflags="-s -w" -o "${DIST}/${ASSET_BIN}" ./cmd/tdlib_ping
chmod +x "${DIST}/${ASSET_BIN}"