diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2bf344f579..060175b23c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,14 @@ jobs: - uses: actions/checkout@v4 - name: Checkout submodules run: git submodule update --init --recursive + - name: Cache CMake build directory + uses: actions/cache@v4 + with: + path: | + build + key: ${{ runner.os }}-cmake-build-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-cmake-build- - name: Install dependencies run: sudo apt-get update && sudo apt-get install -y libasound2-dev @@ -42,6 +50,14 @@ jobs: - uses: actions/checkout@v4 - name: Checkout submodules run: git submodule update --init --recursive + - name: Cache CMake build directory + uses: actions/cache@v4 + with: + path: | + build + key: ${{ runner.os }}-${{ runner.arch }}-cmake-build-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-${{ runner.arch }}-cmake-build- - name: Install dependencies run: brew install nasm @@ -57,6 +73,14 @@ jobs: - uses: actions/checkout@v4 - name: Checkout submodules run: git submodule update --init --recursive + - name: Cache CMake build directory + uses: actions/cache@v4 + with: + path: | + build + key: ${{ runner.os }}-${{ runner.arch }}-cmake-build-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-${{ runner.arch }}-cmake-build- - name: Install dependencies run: brew install nasm @@ -72,6 +96,14 @@ jobs: - uses: actions/checkout@v4 - name: Checkout submodules run: git submodule update --init --recursive + - name: Cache CMake build directory + uses: actions/cache@v4 + with: + path: | + build + key: ${{ runner.os }}-cmake-build-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-cmake-build- - name: Configure run: cmake -B build -DWITH_FFMPEG_JOBS="$env:NUMBER_OF_PROCESSORS" - name: Build