Skip to content

A native macOS / windows / Linux database IDE built with Swift and AppKit. Connect to PostgreSQL, MySQL, SQLite, and Redis from a single app with a fast, keyboard-driven interface.

C++

ci: add Swift package caching to macOS build workflow

okwn89e614929d56
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index eeb5f06..5a1b932 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -23,6 +23,14 @@ jobs:
swift --version
xcodebuild -version
+ - name: Cache Swift packages
+ uses: actions/cache@v4
+ with:
+ path: ~/Library/Caches/org.swift.swiftpm
+ key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }}
+ restore-keys: |
+ ${{ runner.os }}-spm-
+
- name: Resolve dependencies
run: swift package resolve