Skip to content

Commit 94aa691

Browse files
improve CI performance
1 parent 6a3e6fc commit 94aa691

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,26 @@ jobs:
88
strategy:
99
matrix:
1010
scala-version: ['2.11.8', '2.12.8']
11-
java-version: ['8']
1211

1312
steps:
1413
- name: Checkout code
1514
uses: actions/checkout@v4
1615

17-
- name: Setup Scala and SBT
18-
uses: olafurpg/setup-scala@v14
16+
- name: Set up JDK 8 with SBT cache
17+
uses: actions/setup-java@v4
1918
with:
20-
java-version: ${{ matrix.java-version }}
19+
distribution: 'temurin'
20+
java-version: '8'
21+
cache: 'sbt'
2122

22-
- name: Install jq
23-
run: sudo apt-get update && sudo apt-get install -y jq
23+
- name: Install SBT and jq
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install -y apt-transport-https curl gnupg jq
27+
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
28+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
29+
sudo apt-get update
30+
sudo apt-get install -y sbt
2431
2532
- name: Set CLOUDINARY_URL
2633
run: |

0 commit comments

Comments
 (0)