@@ -22,45 +22,37 @@ jobs:
2222 strategy :
2323 matrix :
2424 os : [ubuntu-latest]
25- scala : [2.12.15 ]
25+ scala : [2.12.19 ]
2626 java : [temurin@11]
2727 runs-on : ${{ matrix.os }}
2828 steps :
2929 - name : Checkout current branch (full)
30- uses : actions/checkout@v2
30+ uses : actions/checkout@v6
3131 with :
3232 fetch-depth : 0
3333
3434 - name : Setup Java (temurin@11)
3535 if : matrix.java == 'temurin@11'
36- uses : actions/setup-java@v2
36+ uses : actions/setup-java@v5
3737 with :
3838 distribution : temurin
3939 java-version : 11
40+ cache : sbt
4041
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
5244
5345 - name : Check that workflows are up to date
54- run : sbt ++ ${{ matrix.scala }} githubWorkflowCheck
46+ run : sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
5547
5648 - name : Build project
57- run : sbt ++ ${{ matrix.scala }} test
49+ run : sbt '++ ${{ matrix.scala }}' test
5850
5951 - name : Compress target directories
6052 run : tar cf targets.tar modules/sgraph/target modules/slang/target target modules/schemaInfer/target modules/schema/target modules/converter/target project/target
6153
6254 - name : Upload target directories
63- uses : actions/upload-artifact@v2
55+ uses : actions/upload-artifact@v7
6456 with :
6557 name : target-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
6658 path : targets.tar
@@ -72,43 +64,35 @@ jobs:
7264 strategy :
7365 matrix :
7466 os : [ubuntu-latest]
75- scala : [2.12.15 ]
67+ scala : [2.12.19 ]
7668 java : [temurin@11]
7769 runs-on : ${{ matrix.os }}
7870 steps :
7971 - name : Checkout current branch (full)
80- uses : actions/checkout@v2
72+ uses : actions/checkout@v6
8173 with :
8274 fetch-depth : 0
8375
8476 - name : Setup Java (temurin@11)
8577 if : matrix.java == 'temurin@11'
86- uses : actions/setup-java@v2
78+ uses : actions/setup-java@v5
8779 with :
8880 distribution : temurin
8981 java-version : 11
82+ cache : sbt
9083
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') }}
102-
103- - name : Download target directories (2.12.15)
104- uses : actions/download-artifact@v2
84+ - name : Setup sbt
85+ uses : sbt/setup-sbt@v1
86+
87+ - name : Download target directories (2.12.19)
88+ uses : actions/download-artifact@v8
10589 with :
106- name : target-${{ matrix.os }}-2.12.15 -${{ matrix.java }}
90+ name : target-${{ matrix.os }}-2.12.19 -${{ matrix.java }}
10791
108- - name : Inflate target directories (2.12.15 )
92+ - name : Inflate target directories (2.12.19 )
10993 run : |
11094 tar xf targets.tar
11195 rm targets.tar
11296
11397 - name : Publish project
114- run : sbt ++${{ matrix.scala }} + publish
98+ run : sbt +publish
0 commit comments