mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix tg_owt cache in windows & macos actions
This commit is contained in:
parent
0fbea454bc
commit
0c37990ccd
2 changed files with 5 additions and 2 deletions
4
.github/workflows/mac.yml
vendored
4
.github/workflows/mac.yml
vendored
|
@ -102,6 +102,8 @@ jobs:
|
||||||
cd Libraries/macos
|
cd Libraries/macos
|
||||||
echo "LibrariesPath=`pwd`" >> $GITHUB_ENV
|
echo "LibrariesPath=`pwd`" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
curl -o tg_owt-version.json https://api.github.com/repos/desktop-app/tg_owt/git/refs/heads/master
|
||||||
|
|
||||||
- name: Patches.
|
- name: Patches.
|
||||||
run: |
|
run: |
|
||||||
echo "Find necessary commit from doc."
|
echo "Find necessary commit from doc."
|
||||||
|
@ -475,7 +477,7 @@ jobs:
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ env.LibrariesPath }}/tg_owt
|
path: ${{ env.LibrariesPath }}/tg_owt
|
||||||
key: ${{ runner.OS }}-webrtc-${{ env.CACHE_KEY }}
|
key: ${{ runner.OS }}-webrtc-${{ env.CACHE_KEY }}-${{ hashFiles('**/tg_owt-version.json') }}
|
||||||
- name: WebRTC.
|
- name: WebRTC.
|
||||||
if: steps.cache-webrtc.outputs.cache-hit != 'true'
|
if: steps.cache-webrtc.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
|
3
.github/workflows/win.yml
vendored
3
.github/workflows/win.yml
vendored
|
@ -103,6 +103,7 @@ jobs:
|
||||||
- name: Generate cache key.
|
- name: Generate cache key.
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
curl -o $LibrariesPath/tg_owt-version.json https://api.github.com/repos/desktop-app/tg_owt/git/refs/heads/master
|
||||||
echo $MANUAL_CACHING >> CACHE_KEY.txt
|
echo $MANUAL_CACHING >> CACHE_KEY.txt
|
||||||
if [ "$AUTO_CACHING" == "1" ]; then
|
if [ "$AUTO_CACHING" == "1" ]; then
|
||||||
thisFile=$REPO_NAME/.github/workflows/win.yml
|
thisFile=$REPO_NAME/.github/workflows/win.yml
|
||||||
|
@ -359,7 +360,7 @@ jobs:
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ env.LibrariesPath }}/tg_owt
|
path: ${{ env.LibrariesPath }}/tg_owt
|
||||||
key: ${{ runner.OS }}-webrtc-${{ env.CACHE_KEY }}
|
key: ${{ runner.OS }}-webrtc-${{ env.CACHE_KEY }}-${{ hashFiles('**/tg_owt-version.json') }}
|
||||||
- name: WebRTC.
|
- name: WebRTC.
|
||||||
if: steps.cache-webrtc.outputs.cache-hit != 'true'
|
if: steps.cache-webrtc.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Reference in a new issue