From 6cf261368717aeea571a53a91a1fed3a795d380a Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sat, 7 Aug 2021 12:06:12 -0400 Subject: [PATCH] Cache mupdf build directory for actions --- .github/workflows/c-cpp.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index a19949e..4955d96 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -15,9 +15,14 @@ jobs: steps: - run: apt update && apt -y install libfreetype6-dev - uses: actions/checkout@v1 - - name: Update repo. + - name: Get repo submoduels run: | git submodule update --init --recursive + - name: Cache MuPDF + uses: actions/cache@v2 + with: + path: mupdf/build + key: ${{ runner.os }}-mupdf-${{ hashFiles('**/mupdf/PKGBUILD') }} - name: Building eBookReaderSwitch run: | @@ -27,4 +32,4 @@ jobs: - uses: actions/upload-artifact@master with: name: eBookReaderSwitch - path: eBookReaderSwitch.nro \ No newline at end of file + path: eBookReaderSwitch.nro