mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-15 08:15:06 +00:00
ci: Add caching of dependencies
This commit is contained in:
parent
8bab873a1e
commit
9c59276ec3
1 changed files with 40 additions and 0 deletions
40
.github/workflows/main.yml
vendored
40
.github/workflows/main.yml
vendored
|
@ -32,6 +32,36 @@ jobs:
|
||||||
- name: "Clone Submodules"
|
- name: "Clone Submodules"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: git submodule update --init --recursive
|
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"
|
- name: "Configure Project"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -123,6 +153,16 @@ jobs:
|
||||||
libgl1-mesa-dev \
|
libgl1-mesa-dev \
|
||||||
pkg-config
|
pkg-config
|
||||||
${{ matrix.extra_command }}
|
${{ 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"
|
- name: "Configure Project"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue