From d7e4a25f8b722146d1eb04818ebc60aa10331527 Mon Sep 17 00:00:00 2001 From: Randall Wood <297232+rhwood@users.noreply.github.com> Date: Sun, 2 Jul 2023 17:26:15 -0400 Subject: [PATCH] chore: Use swift 5.8 and caches to build docs (#60) Swift 5.8+ is needed to document extensions. --- .github/workflows/docs.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 143117f..6df3ff7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,6 +26,15 @@ jobs: steps: - name: Checkout 🛎️ uses: actions/checkout@v3 + - uses: swift-actions/setup-swift@v1 + with: + swift-version: "5.8" + - uses: actions/cache@v3 + with: + path: .build + key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} + restore-keys: | + ${{ runner.os }}-spm- - name: Package documentation 🛠 run: | export DOCC_JSON_PRETTYPRINT="YES"