1717env :
1818 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1919
20-
21- concurrency :
22- group : ${{ github.workflow }} @ ${{ github.ref }}
23- cancel-in-progress : true
24-
2520jobs :
2621 build :
2722 name : Build and Test
2823 strategy :
2924 matrix :
3025 os : [ubuntu-latest]
31- scala : [2.11, 2.12, 2.13, 3]
26+ scala : [2.11.12 , 2.12.18 , 2.13.12 , 3.3.1 ]
3227 java : [zulu@8]
3328 runs-on : ${{ matrix.os }}
34- timeout-minutes : 60
3529 steps :
3630 - name : Checkout current branch (full)
3731 uses : actions/checkout@v4
3832 with :
3933 fetch-depth : 0
4034
4135 - name : Setup Java (zulu@8)
42- id : setup-java-zulu-8
4336 if : matrix.java == 'zulu@8'
4437 uses : actions/setup-java@v3
4538 with :
4639 distribution : zulu
4740 java-version : 8
4841 cache : sbt
4942
50- - name : sbt update
51- if : matrix.java == 'zulu@8' && steps.setup-java-zulu-8.outputs.cache-hit == 'false'
52- run : sbt +update
53-
5443 - name : Check that workflows are up to date
55- run : sbt githubWorkflowCheck
44+ run : sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
5645
5746 - name : Scala 2.13 build
5847 if : startsWith(matrix.scala, '2.13')
@@ -62,19 +51,13 @@ jobs:
6251 if : ' !startsWith(matrix.scala, '' 2.13'' )'
6352 run : sbt '++ ${{ matrix.scala }}' test
6453
65- - name : Make target directories
66- if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/1.5' || startsWith(github.ref, 'refs/tags/v'))
67- run : mkdir -p target project/target
68-
6954 - name : Compress target directories
70- if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/1.5' || startsWith(github.ref, 'refs/tags/v'))
7155 run : tar cf targets.tar target project/target
7256
7357 - name : Upload target directories
74- if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/1.5' || startsWith(github.ref, 'refs/tags/v'))
7558 uses : actions/upload-artifact@v3
7659 with :
77- name : target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}
60+ name : target-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
7861 path : targets.tar
7962
8063 publish :
8467 strategy :
8568 matrix :
8669 os : [ubuntu-latest]
70+ scala : [2.13.12]
8771 java : [zulu@8]
8872 runs-on : ${{ matrix.os }}
8973 steps :
@@ -93,54 +77,49 @@ jobs:
9377 fetch-depth : 0
9478
9579 - name : Setup Java (zulu@8)
96- id : setup-java-zulu-8
9780 if : matrix.java == 'zulu@8'
9881 uses : actions/setup-java@v3
9982 with :
10083 distribution : zulu
10184 java-version : 8
10285 cache : sbt
10386
104- - name : sbt update
105- if : matrix.java == 'zulu@8' && steps.setup-java-zulu-8.outputs.cache-hit == 'false'
106- run : sbt +update
107-
108- - name : Download target directories (2.11)
87+ - name : Download target directories (2.11.12)
10988 uses : actions/download-artifact@v3
11089 with :
111- name : target-${{ matrix.os }}-${{ matrix.java }}-2.11
90+ name : target-${{ matrix.os }}-2.11.12- ${{ matrix.java }}
11291
113- - name : Inflate target directories (2.11)
92+ - name : Inflate target directories (2.11.12 )
11493 run : |
11594 tar xf targets.tar
11695 rm targets.tar
11796
118- - name : Download target directories (2.12)
97+ - name : Download target directories (2.12.18 )
11998 uses : actions/download-artifact@v3
12099 with :
121- name : target-${{ matrix.os }}-${{ matrix.java }}-2.12
100+ name : target-${{ matrix.os }}-2.12.18- ${{ matrix.java }}
122101
123- - name : Inflate target directories (2.12)
102+ - name : Inflate target directories (2.12.18 )
124103 run : |
125104 tar xf targets.tar
126105 rm targets.tar
127106
128- - name : Download target directories (2.13)
107+ - name : Download target directories (2.13.12 )
129108 uses : actions/download-artifact@v3
130109 with :
131- name : target-${{ matrix.os }}-${{ matrix.java }}-2.13
110+ name : target-${{ matrix.os }}-2.13.12- ${{ matrix.java }}
132111
133- - name : Inflate target directories (2.13)
112+ - name : Inflate target directories (2.13.12 )
134113 run : |
135114 tar xf targets.tar
136115 rm targets.tar
137116
138- - name : Download target directories (3)
117+ - name : Download target directories (3.3.1 )
139118 uses : actions/download-artifact@v3
140119 with :
141- name : target-${{ matrix.os }}-${{ matrix.java }}-3
120+ name : target-${{ matrix.os }}-3.3.1- ${{ matrix.java }}
142121
143- - name : Inflate target directories (3)
122+ - name : Inflate target directories (3.3.1 )
144123 run : |
145124 tar xf targets.tar
146125 rm targets.tar
0 commit comments