Skip to content

Commit

Permalink
ci: remove the broken cache steps for swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoEllet committed Dec 14, 2024
1 parent 828464f commit 11beb3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
27 changes: 2 additions & 25 deletions .github/workflows/swift-format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,12 @@ jobs:
- name: 🛠️ Setup Swift
uses: swift-actions/setup-swift@v2

- name: 📦 Cache Swift Format
id: swift-format-cache
uses: actions/cache@v4
with:
path: .build
key: swift-format-${{ runner.os }}-v${{ env.SWIFT_FORMAT_VERSION }}-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
swift-format-${{ runner.os }}-v
- name: 📦 Restore Cached Swift Format
if: steps.swift-format-cache.outputs.cache-hit == 'true'
run: |
if [ -d ".build" ]; then
if ! [ -x "$(command -v swift-format)" ]; then
sudo cp -f .build/release/swift-format /usr/local/bin/swift-format
fi
else
echo "The cached swift-format was not found in the .build directory." >&2
exit 1
fi
- name: 📦 Install Swift Format if not cached
if: steps.swift-format-cache.outputs.cache-hit != 'true'
- name: 📦 Install Swift Format
run: |
git clone --branch $SWIFT_FORMAT_VERSION --depth 1 https://github.com/swiftlang/swift-format.git
cd swift-format
swift build -c release
mv .build .. && cd ..
sudo cp -f .build/release/swift-format /usr/local/bin/swift-format
sudo mv .build/release/swift-format /usr/local/bin/
- name: 🔍 Verify Swift Format installation
run: swift-format --version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import UIKit
public class QuillNativeBridgePlugin: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPluginRegistrar) {
let messenger = registrar.messenger()
let api = QuillNativeBridgeImpl()
let api = QuillNativeBridgeImpl()
QuillNativeBridgeApiSetup.setUp(binaryMessenger: messenger, api: api)
}
}

0 comments on commit 11beb3e

Please sign in to comment.