Cache the downloaded pandoc binary.

This commit is contained in:
Bartosz Taudul
2026-08-31 18:44:39 +02:00
parent c6f1cb7585
commit 70e4170e26
6 changed files with 52 additions and 7 deletions

View File

@@ -17,6 +17,7 @@ concurrency:
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm-cache
PANDOC_CACHE_DIR: ${{ github.workspace }}/pandoc-cache
jobs:
build-appimage:
@@ -40,6 +41,11 @@ jobs:
path: ${{ env.CPM_SOURCE_CACHE }}
key: ${{ runner.os }}-cpm-${{ hashFiles('**/vendor.cmake', '**/CMakeLists.txt') }}
restore-keys: ${{ runner.os }}-cpm-
- name: Cache pandoc
uses: actions/cache@v4
with:
path: ${{ env.PANDOC_CACHE_DIR }}
key: ${{ runner.os }}-pandoc-${{ hashFiles('cmake/manual.cmake') }}
- name: Cache wayland
uses: actions/cache@v4
with:

View File

@@ -16,6 +16,7 @@ concurrency:
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm-cache
PANDOC_CACHE_DIR: ${{ github.workspace }}/pandoc-cache
jobs:
build-emscripten:
@@ -37,6 +38,11 @@ jobs:
path: ${{ env.CPM_SOURCE_CACHE }}
key: ${{ runner.os }}-cpm-${{ hashFiles('**/vendor.cmake', '**/CMakeLists.txt') }}
restore-keys: ${{ runner.os }}-cpm-
- name: Cache pandoc
uses: actions/cache@v4
with:
path: ${{ env.PANDOC_CACHE_DIR }}
key: ${{ runner.os }}-pandoc-${{ hashFiles('cmake/manual.cmake') }}
- name: Profiler GUI
run: |
cmake -G Ninja -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=MinSizeRel -DGIT_REV=${{ github.sha }} -DCMAKE_TOOLCHAIN_FILE=${{env.EMSDK}}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake

View File

@@ -16,6 +16,7 @@ concurrency:
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm-cache
PANDOC_CACHE_DIR: ${{ github.workspace }}/pandoc-cache
jobs:
build-linux:
@@ -33,6 +34,11 @@ jobs:
path: ${{ env.CPM_SOURCE_CACHE }}
key: ${{ runner.os }}-cpm-${{ hashFiles('**/vendor.cmake', '**/CMakeLists.txt') }}
restore-keys: ${{ runner.os }}-cpm-
- name: Cache pandoc
uses: actions/cache@v4
with:
path: ${{ env.PANDOC_CACHE_DIR }}
key: ${{ runner.os }}-pandoc-${{ hashFiles('cmake/manual.cmake') }}
- name: Determine build parallelism
run: |
if [ "${ACT:-}" != "true" ] && [ "${FORGEJO_ACTIONS:-}" != "true" ]; then

View File

@@ -17,6 +17,7 @@ concurrency:
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm-cache
PANDOC_CACHE_DIR: ${{ github.workspace }}/pandoc-cache
jobs:
build-macos:
@@ -29,6 +30,11 @@ jobs:
path: ${{ env.CPM_SOURCE_CACHE }}
key: ${{ runner.os }}-cpm-${{ hashFiles('**/vendor.cmake', '**/CMakeLists.txt') }}
restore-keys: ${{ runner.os }}-cpm-
- name: Cache pandoc
uses: actions/cache@v4
with:
path: ${{ env.PANDOC_CACHE_DIR }}
key: ${{ runner.os }}-pandoc-${{ hashFiles('cmake/manual.cmake') }}
- name: Install dependencies
run: brew install pkg-config meson
- name: Trust git repo

View File

@@ -17,6 +17,7 @@ concurrency:
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm-cache
PANDOC_CACHE_DIR: ${{ github.workspace }}/pandoc-cache
jobs:
build-windows:
@@ -29,6 +30,11 @@ jobs:
path: ${{ env.CPM_SOURCE_CACHE }}
key: ${{ runner.os }}-cpm-${{ hashFiles('**/vendor.cmake', '**/CMakeLists.txt') }}
restore-keys: ${{ runner.os }}-cpm-
- name: Cache pandoc
uses: actions/cache@v4
with:
path: ${{ env.PANDOC_CACHE_DIR }}
key: ${{ runner.os }}-pandoc-${{ hashFiles('cmake/manual.cmake') }}
- uses: microsoft/setup-msbuild@v2
- name: Trust git repo
run: git config --global --add safe.directory '*'