Skip to content

Commit 2456e20

Browse files
authored
Merge pull request #75 from lukepistrol/chore/cache-dependencies
[chore]: Actions - Cache Dependencies
2 parents 1bff6a4 + 5cd5e7a commit 2456e20

File tree

8 files changed

+318
-11
lines changed

8 files changed

+318
-11
lines changed

.github/scripts/tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ export LC_CTYPE=en_US.UTF-8
1515

1616
set -o pipefail && arch -"${ARCH}" xcodebuild \
1717
-scheme CodeEditTextView \
18+
-derivedDataPath ".build" \
1819
-destination "platform=macos,arch=${ARCH}" \
1920
clean test | xcpretty

.github/workflows/build-documentation.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
uses: actions/checkout@v1
14+
- uses: actions/cache@v3
15+
with:
16+
path: '.build'
17+
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
18+
restore-keys: |
19+
${{ runner.os }}-spm-
1420
- uses: fwcd/[email protected]
1521
with:
1622
target: CodeEditTextView

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ jobs:
1616
steps:
1717
- name: Checkout repository
1818
uses: actions/checkout@v1
19+
- uses: actions/cache@v3
20+
with:
21+
path: '.build'
22+
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
23+
restore-keys: |
24+
${{ runner.os }}-spm-
1925
- name: Make executeable
2026
run: chmod +x ./.github/scripts/tests.sh
2127
- name: Testing Package

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ DerivedData/
88
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
99
.netrc
1010
.idea/
11-
Package.resolved

.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1400"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "CodeEditTextView"
18+
BuildableName = "CodeEditTextView"
19+
BlueprintName = "CodeEditTextView"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "CodeEditTextViewTests"
32+
BuildableName = "CodeEditTextViewTests"
33+
BlueprintName = "CodeEditTextViewTests"
34+
ReferencedContainer = "container:">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<Testables>
45+
<TestableReference
46+
skipped = "NO">
47+
<BuildableReference
48+
BuildableIdentifier = "primary"
49+
BlueprintIdentifier = "CodeEditTextViewTests"
50+
BuildableName = "CodeEditTextViewTests"
51+
BlueprintName = "CodeEditTextViewTests"
52+
ReferencedContainer = "container:">
53+
</BuildableReference>
54+
</TestableReference>
55+
</Testables>
56+
</TestAction>
57+
<LaunchAction
58+
buildConfiguration = "Debug"
59+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
60+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
61+
launchStyle = "0"
62+
useCustomWorkingDirectory = "NO"
63+
ignoresPersistentStateOnLaunch = "NO"
64+
debugDocumentVersioning = "YES"
65+
debugServiceExtension = "internal"
66+
allowLocationSimulation = "YES">
67+
</LaunchAction>
68+
<ProfileAction
69+
buildConfiguration = "Release"
70+
shouldUseLaunchSchemeArgsEnv = "YES"
71+
savedToolIdentifier = ""
72+
useCustomWorkingDirectory = "NO"
73+
debugDocumentVersioning = "YES">
74+
<MacroExpansion>
75+
<BuildableReference
76+
BuildableIdentifier = "primary"
77+
BlueprintIdentifier = "CodeEditTextView"
78+
BuildableName = "CodeEditTextView"
79+
BlueprintName = "CodeEditTextView"
80+
ReferencedContainer = "container:">
81+
</BuildableReference>
82+
</MacroExpansion>
83+
</ProfileAction>
84+
<AnalyzeAction
85+
buildConfiguration = "Debug">
86+
</AnalyzeAction>
87+
<ArchiveAction
88+
buildConfiguration = "Release"
89+
revealArchiveInOrganizer = "YES">
90+
</ArchiveAction>
91+
</Scheme>

Package.resolved

Lines changed: 212 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let package = Package(
1414
dependencies: [
1515
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
1616
.package(url: "https://github.com/krzyzanowskim/STTextView", exact: "0.0.20"),
17-
.package(url: "https://github.com/ChimeHQ/SwiftTreeSitter", exact: "0.6.1"),
17+
.package(url: "https://github.com/ChimeHQ/SwiftTreeSitter", branch: "0.6.1"),
1818
.package(url: "https://github.com/lukepistrol/tree-sitter-bash.git", branch: "feature/spm"),
1919
.package(url: "https://github.com/tree-sitter/tree-sitter-c.git", branch: "master"),
2020
.package(url: "https://github.com/tree-sitter/tree-sitter-cpp.git", branch: "master"),
@@ -32,7 +32,7 @@ let package = Package(
3232
.package(url: "https://github.com/lukepistrol/tree-sitter-python.git", branch: "feature/spm"),
3333
.package(url: "https://github.com/mattmassicotte/tree-sitter-ruby.git", branch: "feature/swift"),
3434
.package(url: "https://github.com/tree-sitter/tree-sitter-rust.git", branch: "master"),
35-
.package(url: "https://github.com/alex-pinkus/tree-sitter-swift", branch: "with-generated-files"),
35+
.package(url: "https://github.com/alex-pinkus/tree-sitter-swift.git", branch: "with-generated-files"),
3636
.package(url: "https://github.com/mattmassicotte/tree-sitter-yaml.git", branch: "feature/spm"),
3737
.package(url: "https://github.com/maxxnino/tree-sitter-zig.git", branch: "main"),
3838
],

0 commit comments

Comments
 (0)