From 9c59276ec3777b6749d400feaaecdad78b977401 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Fri, 24 Apr 2020 02:10:46 +0200 Subject: [PATCH] ci: Add caching of dependencies --- .github/workflows/main.yml | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 55b2f2a5..72bcbe13 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,6 +32,36 @@ jobs: - name: "Clone Submodules" shell: bash run: git submodule update --init --recursive + - name: "Cache: OBS" + uses: actions/cache@v1 + env: + cache-name: cache-libobs + with: + path: build/temp/libobs-src + key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('CMakeLists.txt') }} + restore-keys: | + ${{ runner.os }}-${{ env.cache-name }}- + ${{ runner.os }}-${{ env.cache-name }} + - name: "Cache: OBS Dependencies" + uses: actions/cache@v1 + env: + cache-name: cache-libobs-deps + with: + path: build/temp/obsdeps-src + key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('CMakeLists.txt') }} + restore-keys: | + ${{ runner.os }}-${{ env.cache-name }}- + ${{ runner.os }}-${{ env.cache-name }} + - name: "Cache: Qt" + uses: actions/cache@v1 + env: + cache-name: cache-qt + with: + path: build/temp/qt-src + key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('CMakeLists.txt') }} + restore-keys: | + ${{ runner.os }}-${{ env.cache-name }}- + ${{ runner.os }}-${{ env.cache-name }} - name: "Configure Project" shell: bash run: | @@ -123,6 +153,16 @@ jobs: libgl1-mesa-dev \ pkg-config ${{ matrix.extra_command }} + - name: "Cache: OBS" + uses: actions/cache@v1 + env: + cache-name: cache-libobs + with: + path: build/temp/libobs-src + key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('CMakeLists.txt') }} + restore-keys: | + ${{ runner.os }}-${{ env.cache-name }}- + ${{ runner.os }}-${{ env.cache-name }} - name: "Configure Project" shell: bash run: |