Commit b354b15 Michel Davit
committed
1 parent 1b6513e commit b354b15 Copy full SHA for b354b15
File tree 2 files changed +28
-5
lines changed
2 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 51
51
if: matrix.java == 'corretto@17' && steps.setup-java-corretto-17.outputs.cache-hit == 'false'
52
52
run: sbt +update
53
53
54
+ - name: Cache
55
+ uses: actions/cache@v4
56
+ with:
57
+ path: ~/.scio-ideaPluginIC
58
+ key: idea-2022.3.1
59
+
54
60
- name: Check that workflows are up to date
55
61
run: sbt githubWorkflowCheck
56
62
@@ -100,6 +106,12 @@ jobs:
100
106
if: matrix.java == 'corretto@17' && steps.setup-java-corretto-17.outputs.cache-hit == 'false'
101
107
run: sbt +update
102
108
109
+ - name: Cache
110
+ uses: actions/cache@v4
111
+ with:
112
+ path: ~/.scio-ideaPluginIC
113
+ key: idea-2022.3.1
114
+
103
115
- name: Download target directories (2.13)
104
116
uses: actions/download-artifact@v4
105
117
with:
Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ disablePlugins(TypelevelCiSigningPlugin)
20
20
lazy val Guava = "com.google.guava" % "guava" % "32.1.3-jre"
21
21
lazy val Scalatest = "org.scalatest" %% "scalatest" % "3.2.18"
22
22
23
+ // idea settings
24
+ lazy val intelliJVersion = "2022.3.1"
25
+ ThisBuild / intellijPluginName := "scio-idea"
26
+ ThisBuild / intellijPlatform := IntelliJPlatform.IdeaCommunity
27
+ ThisBuild / intellijBuild := intelliJVersion
23
28
24
29
// project
25
30
ThisBuild / tlBaseVersion := "0.1"
@@ -46,11 +51,17 @@ ThisBuild / githubWorkflowPublish := Seq(
46
51
env = Map("IJ_PLUGIN_REPO_TOKEN" -> "${{ secrets.IJ_PLUGIN_TOKEN }}")
47
52
)
48
53
)
49
-
50
- // idea settings
51
- ThisBuild / intellijPluginName := "scio-idea"
52
- ThisBuild / intellijPlatform := IntelliJPlatform.IdeaCommunity
53
- ThisBuild / intellijBuild := "2022.3.1" // 1st java 17 version
54
+ val cache = UseRef.Public("actions", "cache", "v4")
55
+ ThisBuild / githubWorkflowGeneratedCacheSteps := Seq(
56
+ WorkflowStep.Use(
57
+ name = Some("Cache"),
58
+ ref = cache,
59
+ params = Map(
60
+ "path" -> "~/.scio-ideaPluginIC",
61
+ "key" -> s"idea-$intelliJVersion",
62
+ )
63
+ )
64
+ )
54
65
55
66
lazy val scioIdeaPlugin: Project = project
56
67
.in(file("."))
You can’t perform that action at this time.
0 commit comments