Skip to content

Commit 406990d

Browse files
committed
Regenerate GitHub Actions workflow
Executed command: sbt githubWorkflowGenerate
1 parent 46e25f7 commit 406990d

File tree

2 files changed

+39
-69
lines changed

2 files changed

+39
-69
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -17,64 +17,52 @@ on:
1717
env:
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1919

20+
21+
concurrency:
22+
group: ${{ github.workflow }} @ ${{ github.ref }}
23+
cancel-in-progress: true
24+
2025
jobs:
2126
build:
2227
name: Build and Test
2328
strategy:
2429
matrix:
2530
os: [ubuntu-latest]
26-
scala: [2.13.11]
31+
scala: [2.13]
2732
java: [temurin@17, temurin@11]
2833
runs-on: ${{ matrix.os }}
34+
timeout-minutes: 60
2935
steps:
3036
- name: Checkout current branch (full)
31-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
3238
with:
3339
fetch-depth: 0
3440

35-
- name: Download Java (temurin@17)
36-
id: download-java-temurin-17
37-
if: matrix.java == 'temurin@17'
38-
uses: typelevel/download-java@v2
39-
with:
40-
distribution: temurin
41-
java-version: 17
42-
4341
- name: Setup Java (temurin@17)
42+
id: setup-java-temurin-17
4443
if: matrix.java == 'temurin@17'
4544
uses: actions/setup-java@v3
4645
with:
47-
distribution: jdkfile
46+
distribution: temurin
4847
java-version: 17
49-
jdkFile: ${{ steps.download-java-temurin-17.outputs.jdkFile }}
48+
cache: sbt
5049

51-
- name: Download Java (temurin@11)
52-
id: download-java-temurin-11
53-
if: matrix.java == 'temurin@11'
54-
uses: typelevel/download-java@v2
55-
with:
56-
distribution: temurin
57-
java-version: 11
50+
- name: sbt update
51+
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
52+
run: sbt +update
5853

5954
- name: Setup Java (temurin@11)
55+
id: setup-java-temurin-11
6056
if: matrix.java == 'temurin@11'
6157
uses: actions/setup-java@v3
6258
with:
63-
distribution: jdkfile
59+
distribution: temurin
6460
java-version: 11
65-
jdkFile: ${{ steps.download-java-temurin-11.outputs.jdkFile }}
61+
cache: sbt
6662

67-
- name: Cache sbt
68-
uses: actions/cache@v3
69-
with:
70-
path: |
71-
~/.sbt
72-
~/.ivy2/cache
73-
~/.coursier/cache/v1
74-
~/.cache/coursier/v1
75-
~/AppData/Local/Coursier/Cache/v1
76-
~/Library/Caches/Coursier/v1
77-
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
63+
- name: sbt update
64+
if: matrix.java == 'temurin@11' && steps.setup-java-temurin-11.outputs.cache-hit == 'false'
65+
run: sbt +update
7866

7967
- name: Check that workflows are up to date
8068
run: sbt githubWorkflowCheck
@@ -111,60 +99,42 @@ jobs:
11199
runs-on: ${{ matrix.os }}
112100
steps:
113101
- name: Checkout current branch (full)
114-
uses: actions/checkout@v3
102+
uses: actions/checkout@v4
115103
with:
116104
fetch-depth: 0
117105

118-
- name: Download Java (temurin@17)
119-
id: download-java-temurin-17
120-
if: matrix.java == 'temurin@17'
121-
uses: typelevel/download-java@v2
122-
with:
123-
distribution: temurin
124-
java-version: 17
125-
126106
- name: Setup Java (temurin@17)
107+
id: setup-java-temurin-17
127108
if: matrix.java == 'temurin@17'
128109
uses: actions/setup-java@v3
129110
with:
130-
distribution: jdkfile
111+
distribution: temurin
131112
java-version: 17
132-
jdkFile: ${{ steps.download-java-temurin-17.outputs.jdkFile }}
113+
cache: sbt
133114

134-
- name: Download Java (temurin@11)
135-
id: download-java-temurin-11
136-
if: matrix.java == 'temurin@11'
137-
uses: typelevel/download-java@v2
138-
with:
139-
distribution: temurin
140-
java-version: 11
115+
- name: sbt update
116+
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
117+
run: sbt +update
141118

142119
- name: Setup Java (temurin@11)
120+
id: setup-java-temurin-11
143121
if: matrix.java == 'temurin@11'
144122
uses: actions/setup-java@v3
145123
with:
146-
distribution: jdkfile
124+
distribution: temurin
147125
java-version: 11
148-
jdkFile: ${{ steps.download-java-temurin-11.outputs.jdkFile }}
126+
cache: sbt
149127

150-
- name: Cache sbt
151-
uses: actions/cache@v3
152-
with:
153-
path: |
154-
~/.sbt
155-
~/.ivy2/cache
156-
~/.coursier/cache/v1
157-
~/.cache/coursier/v1
158-
~/AppData/Local/Coursier/Cache/v1
159-
~/Library/Caches/Coursier/v1
160-
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
161-
162-
- name: Download target directories (2.13.11)
128+
- name: sbt update
129+
if: matrix.java == 'temurin@11' && steps.setup-java-temurin-11.outputs.cache-hit == 'false'
130+
run: sbt +update
131+
132+
- name: Download target directories (2.13)
163133
uses: actions/download-artifact@v3
164134
with:
165-
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13.11
135+
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13
166136

167-
- name: Inflate target directories (2.13.11)
137+
- name: Inflate target directories (2.13)
168138
run: |
169139
tar xf targets.tar
170140
rm targets.tar

.mergify.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ pull_request_rules:
1717
- name: merge scala-steward's PRs
1818
conditions:
1919
- author=scala-steward
20-
- status-success=Build and Test (ubuntu-latest, 2.13.11, temurin@17)
21-
- status-success=Build and Test (ubuntu-latest, 2.13.11, temurin@11)
20+
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@17)
21+
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@11)
2222
actions:
2323
merge:
2424
method: squash

0 commit comments

Comments
 (0)