Skip to content

Commit eedb36d

Browse files
fix: update build script to fetch dependencies without full build
1 parent aa3dc4e commit eedb36d

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
path: |
4343
platforms/macos/.build
4444
~/Library/Caches/org.swift.swiftpm
45+
/tmp/Sparkle-2.8.1
4546
key: ${{ runner.os }}-spm-${{ hashFiles('platforms/macos/Package.resolved') }}
4647
restore-keys: |
4748
${{ runner.os }}-spm-
@@ -58,9 +59,6 @@ jobs:
5859
echo "No compiler warnings."
5960
fi
6061
61-
- name: Build (Release)
62-
run: swift build -c release
63-
6462
- name: Run Tests
6563
run: swift test --parallel
6664

platforms/macos/scripts/build-app.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ CONTENTS_DIR="$APP_DIR/Contents"
1414
MACOS_DIR="$CONTENTS_DIR/MacOS"
1515
RESOURCES_DIR="$CONTENTS_DIR/Resources"
1616

17-
# First build to fetch dependencies
18-
echo "🔨 Building release binary (fetching dependencies)..."
19-
swift build -c release --arch arm64 --arch x86_64
17+
# Fetch dependencies (no need for full build)
18+
echo "📦 Fetching dependencies..."
19+
swift package resolve
2020

2121
# Patch the CHECKOUT source files directly (not DerivedSources which gets regenerated)
2222
# This patches the actual library code before the final build

0 commit comments

Comments
 (0)