From 9ceda95b7adc03347142e06d8e5c06fb82d0e0f6 Mon Sep 17 00:00:00 2001 From: Lukas Pistrol Date: Fri, 14 Apr 2023 16:39:32 +0200 Subject: [PATCH] [chore]: remove unneeded caches after building xcframework (#36) * remove unneeded caches after building xcframework * fix lint error --- .swiftlint.yml | 3 ++- Tests/CodeEditLanguagesTests/CodeEditLanguagesTests.swift | 1 - build_framework.sh | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index ae842b6..9a51615 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -16,4 +16,5 @@ identifier_name: - vc excluded: - - DerivedData \ No newline at end of file + - DerivedData + - Tests diff --git a/Tests/CodeEditLanguagesTests/CodeEditLanguagesTests.swift b/Tests/CodeEditLanguagesTests/CodeEditLanguagesTests.swift index 71a0f8b..0a42f92 100644 --- a/Tests/CodeEditLanguagesTests/CodeEditLanguagesTests.swift +++ b/Tests/CodeEditLanguagesTests/CodeEditLanguagesTests.swift @@ -9,7 +9,6 @@ import XCTest @testable import CodeEditLanguages import SwiftTreeSitter -// swiftlint:disable all final class CodeEditLanguagesTests: XCTestCase { let bundleURL = Bundle.module.resourceURL diff --git a/build_framework.sh b/build_framework.sh index 175d5b6..39e37cc 100755 --- a/build_framework.sh +++ b/build_framework.sh @@ -89,4 +89,11 @@ for lang in $LIST ; do done status "Language queries copied to package resources!" +# cleanup derived derived data + +if [ -d "$PWD/DerivedData" ]; then + status "Cleaning up DerivedData..." + rm -rf "$PWD/DerivedData" +fi + status "Done!"