diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index ebfb141e62..b307a47006 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -102,7 +102,7 @@ jobs: git clone $GIT/desktop-app/zlib.git cd zlib - CFLAGS="$MIN_MAC $UNGUARDED" LDFLAGS="$MIN_MAC" ./configure + CFLAGS="$MIN_MAC $UNGUARDED" LDFLAGS="$MIN_MAC" ./configure --prefix=$PREFIX make -j$(nproc) sudo make install diff --git a/.github/workflows/win.yml b/.github/workflows/win.yml index 46b83e924a..702a3651f5 100644 --- a/.github/workflows/win.yml +++ b/.github/workflows/win.yml @@ -23,7 +23,6 @@ jobs: env: SDK: "10.0.18362.0" VC: "call vcvars32.bat && cd Libraries" - PY2: 'C:\hostedtoolcache\windows\Python\2.7.16\x64' GIT: "https://github.com" QT: "5_12_5" OPENSSL_VER: "1_1_1" @@ -186,6 +185,16 @@ jobs: run: | cd %LibrariesPath% + echo Find any version of Python 2. + for /D %%a in (C:\hostedtoolcache\windows\Python\2.*) do ( + SET PY2=%%a\x64 + ) + IF [%PY2%] == [] ( + echo Python 2 is not found. + exit 1 + ) + echo Found %PY2%. + git clone %GIT%/telegramdesktop/gyp.git cd gyp SET PATH=%PY2%;%cd%;%PATH%