From 87f84c08420864d78d435a0e1e26201586b1e2bb Mon Sep 17 00:00:00 2001 From: ArtDev <45949002+artdeell@users.noreply.github.com> Date: Tue, 17 Aug 2021 12:41:07 +0300 Subject: [PATCH] Add vgpu cache --- .github/workflows/android.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 124c99932..cb11b6e66 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -64,7 +64,19 @@ jobs: git add . git commit -am "CI: Update gl4es" git push - + + - name: Get vgpu latest commit hash + id: vgpu-sha + run: echo "::set-output name=sha::$(echo $(git ls-remote https://github.com/luo9674/VGPU refs/heads/main | grep -io '^\S*'))" + shell: bash + + - name: Cache vgpu + uses: actions/cache@v2 + id: vgpu-cache + with: + path: vgpu/libs + key: vgpu-android-shared-${{ steps.vgpu-sha.outputs.sha }} + - name: Get vgpu if: steps.vgpu-cache.outputs.cache-hit != 'true' uses: actions/checkout@v2