Fix Windows action
This commit is contained in:
parent
1244200987
commit
bb141b4268
|
@ -60,13 +60,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare directories.
|
- name: Prepare directories.
|
||||||
run: |
|
run: |
|
||||||
mkdir %userprofile%\TBuild
|
mkdir %userprofile%\TBuild\Libraries
|
||||||
mklink /d %GITHUB_WORKSPACE%\TBuild %userprofile%\TBuild
|
mklink /d %GITHUB_WORKSPACE%\TBuild %userprofile%\TBuild
|
||||||
echo TBUILD=%GITHUB_WORKSPACE%\TBuild>>%GITHUB_ENV%
|
echo TBUILD=%GITHUB_WORKSPACE%\TBuild>>%GITHUB_ENV%
|
||||||
|
|
||||||
mkdir %userprofile%\TBuild Libraries
|
|
||||||
mklink /d %userprofile%\TBuild\Libraries %GITHUB_WORKSPACE%\Libraries
|
|
||||||
|
|
||||||
- name: Get repository name.
|
- name: Get repository name.
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
||||||
|
@ -100,7 +97,7 @@ jobs:
|
||||||
id: cache-libs
|
id: cache-libs
|
||||||
uses: actions/cache@v3.0.11
|
uses: actions/cache@v3.0.11
|
||||||
with:
|
with:
|
||||||
path: Libraries
|
path: ${{ env.TBUILD }}\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-
|
||||||
|
|
||||||
|
@ -108,7 +105,9 @@ 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: '%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.
|
- name: Read defines.
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -132,6 +131,7 @@ jobs:
|
||||||
|
|
||||||
- name: Free up some disk space.
|
- name: Free up some disk space.
|
||||||
run: |
|
run: |
|
||||||
|
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