Update tdlib_ping workflow and README to clarify CGO_CFLAGS usage for building TDLib from source. Adjust CGO_CFLAGS to point to the root of the TDLib clone, enhancing compatibility for users building from git.
Publish mtproxy_checker Docker image / test (push) Successful in 6s
Build tdlib_ping (linux/amd64) / build-tdlib-ping (push) Failing after 6m11s
Publish mtproxy_checker Docker image / build-and-push (push) Successful in 52s

This commit is contained in:
Denozordec
2026-04-11 16:40:30 +07:00
parent 76e752fc26
commit 15ca7ad10e
2 changed files with 11 additions and 1 deletions
+2 -1
View File
@@ -71,7 +71,8 @@ jobs:
fi
cd "${ROOT}"
export CGO_ENABLED=1
export CGO_CFLAGS="-I${TDLIB_ROOT}/td"
# Корень клона td-src: там лежит td/telegram/td_json_client.h для #include <td/telegram/...>
export CGO_CFLAGS="-I${TDLIB_ROOT}"
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}"