diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 3d259f333..5522262ef 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -102,6 +102,8 @@ jobs: cd Libraries/macos 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. run: | echo "Find necessary commit from doc." @@ -475,7 +477,7 @@ jobs: uses: actions/cache@v2 with: 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. if: steps.cache-webrtc.outputs.cache-hit != 'true' run: | diff --git a/.github/workflows/win.yml b/.github/workflows/win.yml index f9d997ad9..25072e9b8 100644 --- a/.github/workflows/win.yml +++ b/.github/workflows/win.yml @@ -103,6 +103,7 @@ jobs: - name: Generate cache key. shell: bash 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 if [ "$AUTO_CACHING" == "1" ]; then thisFile=$REPO_NAME/.github/workflows/win.yml @@ -359,7 +360,7 @@ jobs: uses: actions/cache@v2 with: 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. if: steps.cache-webrtc.outputs.cache-hit != 'true' run: |