Fixed warnings from Github CI.

This commit is contained in:
23rd 2022-11-07 15:32:59 +03:00 committed by John Preston
parent c06f0b3ea1
commit 9601207b2c
6 changed files with 14 additions and 12 deletions

View file

@ -20,7 +20,7 @@ jobs:
steps: steps:
- name: Clone. - name: Clone.
uses: actions/checkout@v2 uses: actions/checkout@v3.1.0
with: with:
submodules: recursive submodules: recursive

View file

@ -69,7 +69,7 @@ jobs:
run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Clone. - name: Clone.
uses: actions/checkout@v2 uses: actions/checkout@v3.1.0
with: with:
submodules: recursive submodules: recursive
path: ${{ env.REPO_NAME }} path: ${{ env.REPO_NAME }}

View file

@ -56,7 +56,7 @@ jobs:
run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Clone. - name: Clone.
uses: actions/checkout@v2 uses: actions/checkout@v3.1.0
with: with:
submodules: recursive submodules: recursive
path: ${{ env.REPO_NAME }} path: ${{ env.REPO_NAME }}
@ -73,7 +73,7 @@ jobs:
- name: ThirdParty cache. - name: ThirdParty cache.
id: cache-third-party id: cache-third-party
uses: actions/cache@v2 uses: actions/cache@v3.0.11
with: with:
path: ThirdParty path: ThirdParty
key: ${{ runner.OS }}-third-party-${{ hashFiles(format('{0}/{1}', env.REPO_NAME, env.PREPARE_PATH)) }} key: ${{ runner.OS }}-third-party-${{ hashFiles(format('{0}/{1}', env.REPO_NAME, env.PREPARE_PATH)) }}
@ -81,7 +81,7 @@ jobs:
- name: Libraries cache. - name: Libraries cache.
id: cache-libs id: cache-libs
uses: actions/cache@v2 uses: actions/cache@v3.0.11
with: with:
path: Libraries path: Libraries
key: ${{ runner.OS }}-libs-${{ hashFiles(format('{0}/{1}', env.REPO_NAME, env.PREPARE_PATH)) }} key: ${{ runner.OS }}-libs-${{ hashFiles(format('{0}/{1}', env.REPO_NAME, env.PREPARE_PATH)) }}

View file

@ -11,7 +11,7 @@ jobs:
SKIP: "0" SKIP: "0"
to_branch: "master" to_branch: "master"
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v3.1.0
if: env.SKIP == '0' if: env.SKIP == '0'
- name: Push the code to the master branch. - name: Push the code to the master branch.
if: env.SKIP == '0' if: env.SKIP == '0'

View file

@ -47,7 +47,7 @@ jobs:
steps: steps:
- name: Clone. - name: Clone.
uses: actions/checkout@v2 uses: actions/checkout@v3.1.0
with: with:
fetch-depth: 0 fetch-depth: 0
submodules: recursive submodules: recursive

View file

@ -60,21 +60,24 @@ jobs:
steps: steps:
- name: Prepare directories. - name: Prepare directories.
run: | run: |
mkdir %userprofile%\TBuild
mklink /d %GITHUB_WORKSPACE%\TBuild %userprofile%\TBuild
echo TBUILD=%GITHUB_WORKSPACE%\TBuild>>%GITHUB_ENV%
mkdir %userprofile%\TBuild Libraries mkdir %userprofile%\TBuild Libraries
mklink /d %userprofile%\TBuild\Libraries %GITHUB_WORKSPACE%\Libraries mklink /d %userprofile%\TBuild\Libraries %GITHUB_WORKSPACE%\Libraries
echo TBUILD=%userprofile%\TBuild>>%GITHUB_ENV%
- 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
- uses: ilammy/msvc-dev-cmd@v1.10.0 - uses: ilammy/msvc-dev-cmd@v1.12.0
name: Native Tools Command Prompt. name: Native Tools Command Prompt.
with: with:
arch: ${{ matrix.arch }} arch: ${{ matrix.arch }}
- name: Clone. - name: Clone.
uses: LebedevRI/checkout@issue197 uses: actions/checkout@v3.1.0
with: with:
submodules: recursive submodules: recursive
path: ${{ env.TBUILD }}\${{ env.REPO_NAME }} path: ${{ env.TBUILD }}\${{ env.REPO_NAME }}
@ -98,7 +101,7 @@ jobs:
- name: Libraries cache. - name: Libraries cache.
id: cache-libs id: cache-libs
uses: actions/cache@v2 uses: actions/cache@v3.0.11
with: with:
path: Libraries path: Libraries
key: ${{ runner.OS }}-${{ matrix.arch }}-libs-${{ env.CACHE_KEY }} key: ${{ runner.OS }}-${{ matrix.arch }}-libs-${{ env.CACHE_KEY }}
@ -132,7 +135,6 @@ jobs:
- name: Telegram Desktop build. - name: Telegram Desktop build.
if: env.ONLY_CACHE == 'false' if: env.ONLY_CACHE == 'false'
run: | run: |
C:
cd %TBUILD%\%REPO_NAME%\Telegram cd %TBUILD%\%REPO_NAME%\Telegram
call configure.bat ^ call configure.bat ^