summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-11-15 15:41:47 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-11-18 02:00:09 +0100
commit8179cca716a5ca2de38f1a53725f2648e437480a (patch)
treeac7c2097c578bb73a85dff54fdc7aa25dde316aa /.github/workflows
parent1b0b05128a137a5b1faa89fbf76a5aa83455ba39 (diff)
GitHub Actions: Add ccache caching
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0a5eceaf13..2609899b26 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -14,6 +14,7 @@ jobs:
- name: Install build dependencies
run: |
sudo apt-get update && sudo apt-get install -y --no-install-recommends \
+ ccache \
libavformat-dev \
libchromaprint-dev \
libebur128-dev \
@@ -54,6 +55,19 @@ jobs:
cmake-version: '3.13.x'
- name: Create build directory
run: mkdir cmake_build
+ - name: Prepare ccache timestamp
+ id: ccache_cache_timestamp
+ shell: cmake -P {0}
+ run: |
+ string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
+ message("::set-output name=timestamp::${current_date}")
+ - name: Set up ccache cache
+ uses: actions/cache@v1.1.0
+ with:
+ path: .cache/ccache
+ key: ${{ github.job }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
+ restore-keys: |
+ ${{ github.job }}-ccache-
- name: Configure
# TODO for Ubuntu Focal: Replace "-DFAAD=ON" with "-DFFMPEG=ON"
run: |