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