mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-02 05:06:55 +00:00
Have libraries in GITHUB_WORKSPACE for caching in Windows action
This commit is contained in:
parent
7c72393361
commit
ae43e78a86
12
.github/workflows/win.yml
vendored
12
.github/workflows/win.yml
vendored
@ -62,7 +62,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Prepare directories.
|
- name: Prepare directories.
|
||||||
run: |
|
run: |
|
||||||
mkdir %userprofile%\TBuild\Libraries
|
mkdir %userprofile%\TBuild Libraries
|
||||||
|
mklink /d %userprofile%\TBuild\Libraries %GITHUB_WORKSPACE%\Libraries
|
||||||
echo TBUILD=%userprofile%\TBuild>>%GITHUB_ENV%
|
echo TBUILD=%userprofile%\TBuild>>%GITHUB_ENV%
|
||||||
|
|
||||||
- name: Get repository name.
|
- name: Get repository name.
|
||||||
@ -112,7 +113,7 @@ jobs:
|
|||||||
id: cache-libs
|
id: cache-libs
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ env.TBUILD }}/Libraries
|
path: Libraries
|
||||||
key: ${{ runner.OS }}-${{ matrix.arch }}-libs-${{ env.CACHE_KEY }}
|
key: ${{ runner.OS }}-${{ matrix.arch }}-libs-${{ env.CACHE_KEY }}
|
||||||
restore-keys: ${{ runner.OS }}-${{ matrix.arch }}-libs-
|
restore-keys: ${{ runner.OS }}-${{ matrix.arch }}-libs-
|
||||||
|
|
||||||
@ -120,10 +121,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GYP_MSVS_OVERRIDE_PATH: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\'
|
GYP_MSVS_OVERRIDE_PATH: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\'
|
||||||
GYP_MSVS_VERSION: 2022
|
GYP_MSVS_VERSION: 2022
|
||||||
run: |
|
run: '%TBUILD%\%REPO_NAME%\Telegram\build\prepare\win.bat skip-release silent'
|
||||||
C:
|
|
||||||
cd %TBUILD%
|
|
||||||
%REPO_NAME%/Telegram/build/prepare/win.bat skip-release silent
|
|
||||||
|
|
||||||
- name: Read defines.
|
- name: Read defines.
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -140,8 +138,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Free up some disk space.
|
- name: Free up some disk space.
|
||||||
run: |
|
run: |
|
||||||
C:
|
|
||||||
cd %TBUILD%
|
|
||||||
del /S Libraries\*.pdb
|
del /S Libraries\*.pdb
|
||||||
del /S Libraries\*.pch
|
del /S Libraries\*.pch
|
||||||
del /S Libraries\*.obj
|
del /S Libraries\*.obj
|
||||||
|
Loading…
Reference in New Issue
Block a user