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 : [3]
26+ scala : [3.3.1 ]
3227 java : [zulu@8]
3328 runs-on : ${{ matrix.os }}
34- timeout-minutes : 60
3529 steps :
3630 - name : Checkout current branch (full)
37- uses : actions/checkout@v3
31+ 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 '++ ${{ matrix.scala }}' reload +update
53-
5443 - name : Check that workflows are up to date
55- run : sbt githubWorkflowCheck
44+ run : sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
5645
5746 - name : Build project
5847 run : sbt '++ ${{ matrix.scala }}' test
5948
60- - name : Make target directories
61- if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
62- run : mkdir -p target project/target
63-
6449 - name : Compress target directories
65- if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
6650 run : tar cf targets.tar target project/target
6751
6852 - name : Upload target directories
69- if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
7053 uses : actions/upload-artifact@v3
7154 with :
72- name : target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}
55+ name : target-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
7356 path : targets.tar
7457
7558 publish :
@@ -79,33 +62,29 @@ jobs:
7962 strategy :
8063 matrix :
8164 os : [ubuntu-latest]
65+ scala : [3.3.1]
8266 java : [zulu@8]
8367 runs-on : ${{ matrix.os }}
8468 steps :
8569 - name : Checkout current branch (full)
86- uses : actions/checkout@v3
70+ uses : actions/checkout@v4
8771 with :
8872 fetch-depth : 0
8973
9074 - name : Setup Java (zulu@8)
91- id : setup-java-zulu-8
9275 if : matrix.java == 'zulu@8'
9376 uses : actions/setup-java@v3
9477 with :
9578 distribution : zulu
9679 java-version : 8
9780 cache : sbt
9881
99- - name : sbt update
100- if : matrix.java == 'zulu@8' && steps.setup-java-zulu-8.outputs.cache-hit == 'false'
101- run : sbt reload +update
102-
103- - name : Download target directories (3)
82+ - name : Download target directories (3.3.1)
10483 uses : actions/download-artifact@v3
10584 with :
106- name : target-${{ matrix.os }}-${{ matrix.java }}-3
85+ name : target-${{ matrix.os }}-3.3.1- ${{ matrix.java }}
10786
108- - name : Inflate target directories (3)
87+ - name : Inflate target directories (3.3.1 )
10988 run : |
11089 tar xf targets.tar
11190 rm targets.tar
0 commit comments