@@ -27,40 +27,32 @@ jobs:
27
27
runs-on : ${{ matrix.os }}
28
28
steps :
29
29
- name : Checkout current branch (full)
30
- uses : actions/checkout@v2
30
+ uses : actions/checkout@v4
31
31
with :
32
32
fetch-depth : 0
33
33
34
34
- name : Setup Java (temurin@17)
35
35
if : matrix.java == 'temurin@17'
36
- uses : actions/setup-java@v2
36
+ uses : actions/setup-java@v4
37
37
with :
38
38
distribution : temurin
39
39
java-version : 17
40
+ cache : sbt
40
41
41
- - name : Cache sbt
42
- uses : actions/cache@v2
43
- with :
44
- path : |
45
- ~/.sbt
46
- ~/.ivy2/cache
47
- ~/.coursier/cache/v1
48
- ~/.cache/coursier/v1
49
- ~/AppData/Local/Coursier/Cache/v1
50
- ~/Library/Caches/Coursier/v1
51
- key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
42
+ - name : Setup sbt
43
+ uses : sbt/setup-sbt@v1
52
44
53
45
- name : Check that workflows are up to date
54
- run : sbt ++ ${{ matrix.scala }} githubWorkflowCheck
46
+ run : sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
55
47
56
48
- name : Build project
57
- run : sbt ++ ${{ matrix.scala }} test
49
+ run : sbt '++ ${{ matrix.scala }}' test
58
50
59
51
- name : Compress target directories
60
52
run : tar cf targets.tar target project/target
61
53
62
54
- name : Upload target directories
63
- uses : actions/upload-artifact@v2
55
+ uses : actions/upload-artifact@v4
64
56
with :
65
57
name : target-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
66
58
path : targets.tar
@@ -77,31 +69,23 @@ jobs:
77
69
runs-on : ${{ matrix.os }}
78
70
steps :
79
71
- name : Checkout current branch (full)
80
- uses : actions/checkout@v2
72
+ uses : actions/checkout@v4
81
73
with :
82
74
fetch-depth : 0
83
75
84
76
- name : Setup Java (temurin@17)
85
77
if : matrix.java == 'temurin@17'
86
- uses : actions/setup-java@v2
78
+ uses : actions/setup-java@v4
87
79
with :
88
80
distribution : temurin
89
81
java-version : 17
82
+ cache : sbt
90
83
91
- - name : Cache sbt
92
- uses : actions/cache@v2
93
- with :
94
- path : |
95
- ~/.sbt
96
- ~/.ivy2/cache
97
- ~/.coursier/cache/v1
98
- ~/.cache/coursier/v1
99
- ~/AppData/Local/Coursier/Cache/v1
100
- ~/Library/Caches/Coursier/v1
101
- key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
84
+ - name : Setup sbt
85
+ uses : sbt/setup-sbt@v1
102
86
103
87
- name : Download target directories (2.13.14)
104
- uses : actions/download-artifact@v2
88
+ uses : actions/download-artifact@v4
105
89
with :
106
90
name : target-${{ matrix.os }}-2.13.14-${{ matrix.java }}
107
91
111
95
rm targets.tar
112
96
113
97
- name : Publish project
114
- run : sbt ++${{ matrix.scala }} + publish
98
+ run : sbt +publish
0 commit comments