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