diff --git a/.github/workflows/win.yml b/.github/workflows/win.yml index bdc04f6303..8857dc74f8 100644 --- a/.github/workflows/win.yml +++ b/.github/workflows/win.yml @@ -62,7 +62,8 @@ jobs: steps: - name: Prepare directories. run: | - mkdir %userprofile%\TBuild\Libraries + mkdir %userprofile%\TBuild Libraries + mklink /d %userprofile%\TBuild\Libraries %GITHUB_WORKSPACE%\Libraries echo TBUILD=%userprofile%\TBuild>>%GITHUB_ENV% - name: Get repository name. @@ -112,7 +113,7 @@ jobs: id: cache-libs uses: actions/cache@v2 with: - path: ${{ env.TBUILD }}/Libraries + path: Libraries key: ${{ runner.OS }}-${{ matrix.arch }}-libs-${{ env.CACHE_KEY }} restore-keys: ${{ runner.OS }}-${{ matrix.arch }}-libs- @@ -120,10 +121,7 @@ jobs: env: GYP_MSVS_OVERRIDE_PATH: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\' GYP_MSVS_VERSION: 2022 - run: | - C: - cd %TBUILD% - %REPO_NAME%/Telegram/build/prepare/win.bat skip-release silent + run: '%TBUILD%\%REPO_NAME%\Telegram\build\prepare\win.bat skip-release silent' - name: Read defines. shell: bash @@ -140,8 +138,6 @@ jobs: - name: Free up some disk space. run: | - C: - cd %TBUILD% del /S Libraries\*.pdb del /S Libraries\*.pch del /S Libraries\*.obj