Have libraries in GITHUB_WORKSPACE for caching in Windows action

This commit is contained in:
Ilya Fedin 2022-04-16 15:53:06 +04:00 committed by John Preston
parent 7c72393361
commit ae43e78a86

View File

@ -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