From a42954262cc78094c39a75cc5dd715a1db572178 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Wed, 28 Apr 2021 17:37:08 -0700 Subject: [PATCH] CI: Can we cache the directory? --- .github/workflows/main.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fa536412..2c5130dd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,4 +52,19 @@ jobs: - name: 'Extract Qt' run: | 7z x ${{ env.QT_BASE_DIR }}\${{ env.QT_ARCHIVE_FILE }} -o${{ env.QT_BASE_DIR }} - dir ${{ env.QT_BASE_DIR }} \ No newline at end of file + dir ${{ env.QT_BASE_DIR }} + - name: 'Restore cached OBS Studio dependencies' + id: obscache + uses: actions/cache@v2 + with: + path: ${{ env.DEPS_BASE_PATH }}\** + key: 'obsdep-${{ env.DEPS_CACHE_VERSION }} | ${{ runner.os }}' + restore-keys: | + obsdep-${{ env.DEPS_CACHE_VERSION }} | ${{ runner.os }} + - name: 'Download and Extract deps' + if: steps.obscache.outputs.cache-hit != 'true' + run: | + mkdir ${{ env.DEPS_BASE_PATH }} + cd D:\ + curl -o dependencies.zip -kLO https://cdn-fastly.obsproject.com/downloads/dependencies2019.zip -f --retry 5 -C - + 7z x dependencies.zip -o${{ env.DEPS_BASE_PATH }} \ No newline at end of file