Actions: Clear Ubuntu cache between releases

This commit is contained in:
KatieFrogs 2022-10-24 16:45:26 +02:00
parent b0b1091554
commit 2fbe627c84

View File

@ -32,7 +32,9 @@ jobs:
- name: Create build environment - name: Create build environment
# Some projects don't allow in-source building, so create a separate build directory # Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands # We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{runner.workspace}}/build run: |
cmake -E make_directory ${{runner.workspace}}/build
echo "RELEASE=$(lsb_release -sr)" >> $GITHUB_ENV
- name: Cache celt - name: Cache celt
uses: actions/cache@v3 uses: actions/cache@v3
@ -42,7 +44,7 @@ jobs:
${{runner.workspace}}/dependencies/celt-0110 ${{runner.workspace}}/dependencies/celt-0110
${{runner.workspace}}/build/dependencies/celt-0061/libcelt/.libs ${{runner.workspace}}/build/dependencies/celt-0061/libcelt/.libs
${{runner.workspace}}/build/dependencies/celt-0110/libcelt/.libs ${{runner.workspace}}/build/dependencies/celt-0110/libcelt/.libs
key: linux-celt-${{ hashFiles('cmake/dependencies/celt.cmake') }} key: linux-${{ env.RELEASE }}-celt-${{ hashFiles('cmake/dependencies/celt.cmake') }}
- name: Cache ffmpeg - name: Cache ffmpeg
uses: actions/cache@v3 uses: actions/cache@v3
@ -50,21 +52,21 @@ jobs:
path: | path: |
${{runner.workspace}}/build/dependencies/ffmpeg/bin/usr/local/include ${{runner.workspace}}/build/dependencies/ffmpeg/bin/usr/local/include
${{runner.workspace}}/build/dependencies/ffmpeg/bin/usr/local/lib ${{runner.workspace}}/build/dependencies/ffmpeg/bin/usr/local/lib
key: linux-ffmpeg-${{ hashFiles('cmake/dependencies/ffmpeg.cmake') }} key: linux-${{ env.RELEASE }}-ffmpeg-${{ hashFiles('cmake/dependencies/ffmpeg.cmake') }}
- name: Cache atrac9 - name: Cache atrac9
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/build/dependencies/LibAtrac9/bin ${{runner.workspace}}/build/dependencies/LibAtrac9/bin
key: linux-atrac9-${{ hashFiles('cmake/dependencies/atrac9.cmake') }} key: linux-${{ env.RELEASE }}-atrac9-${{ hashFiles('cmake/dependencies/atrac9.cmake') }}
- name: Cache g719 - name: Cache g719
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/build/dependencies/libg719_decode/libg719_decode.a ${{runner.workspace}}/build/dependencies/libg719_decode/libg719_decode.a
key: linux-g719-${{ hashFiles('cmake/dependencies/g719.cmake') }} key: linux-${{ env.RELEASE }}-g719-${{ hashFiles('cmake/dependencies/g719.cmake') }}
- name: Cache mpg123 - name: Cache mpg123
uses: actions/cache@v3 uses: actions/cache@v3
@ -72,14 +74,14 @@ jobs:
path: | path: |
${{runner.workspace}}/dependencies/mpg123 ${{runner.workspace}}/dependencies/mpg123
${{runner.workspace}}/build/dependencies/mpg123/src/libmpg123/.libs ${{runner.workspace}}/build/dependencies/mpg123/src/libmpg123/.libs
key: linux-mpg123-${{ hashFiles('cmake/dependencies/mpg123.cmake') }} key: linux-${{ env.RELEASE }}-mpg123-${{ hashFiles('cmake/dependencies/mpg123.cmake') }}
- name: Cache speex - name: Cache speex
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/build/dependencies/speex/libspeex/.libs ${{runner.workspace}}/build/dependencies/speex/libspeex/.libs
key: linux-speex-${{ hashFiles('cmake/dependencies/speex.cmake') }} key: linux-${{ env.RELEASE }}-speex-${{ hashFiles('cmake/dependencies/speex.cmake') }}
- name: Configure CMake - name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable # Use a bash shell so we can use the same syntax for environment variable