From bb141b4268483a372f7eca3ed692acf5c9352b17 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Tue, 22 Aug 2023 06:11:50 +0400 Subject: [PATCH] Fix Windows action --- .github/workflows/win.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/win.yml b/.github/workflows/win.yml index a3f305ce4..3c86918f2 100644 --- a/.github/workflows/win.yml +++ b/.github/workflows/win.yml @@ -60,13 +60,10 @@ jobs: steps: - name: Prepare directories. run: | - mkdir %userprofile%\TBuild + mkdir %userprofile%\TBuild\Libraries mklink /d %GITHUB_WORKSPACE%\TBuild %userprofile%\TBuild echo TBUILD=%GITHUB_WORKSPACE%\TBuild>>%GITHUB_ENV% - mkdir %userprofile%\TBuild Libraries - mklink /d %userprofile%\TBuild\Libraries %GITHUB_WORKSPACE%\Libraries - - name: Get repository name. shell: bash run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV @@ -100,7 +97,7 @@ jobs: id: cache-libs uses: actions/cache@v3.0.11 with: - path: Libraries + path: ${{ env.TBUILD }}\Libraries key: ${{ runner.OS }}-${{ matrix.arch }}-libs-${{ env.CACHE_KEY }} restore-keys: ${{ runner.OS }}-${{ matrix.arch }}-libs- @@ -108,7 +105,9 @@ jobs: env: GYP_MSVS_OVERRIDE_PATH: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\' GYP_MSVS_VERSION: 2022 - run: '%TBUILD%\%REPO_NAME%\Telegram\build\prepare\win.bat skip-release silent' + run: | + cd %TBUILD% + %REPO_NAME%\Telegram\build\prepare\win.bat skip-release silent - name: Read defines. shell: bash @@ -132,6 +131,7 @@ jobs: - name: Free up some disk space. run: | + cd %TBUILD% del /S Libraries\*.pdb del /S Libraries\*.pch del /S Libraries\*.obj