@@ -15,17 +15,23 @@ jobs:
1515 fail-fast : false
1616 matrix :
1717 os : [ubuntu-latest, windows-latest]
18- scalajs : ["1.16.0"]
18+ java :
19+ - { distribution: temurin, version: 17 }
20+ - { distribution: graalvm, version: 21 }
21+ scalajs : ["1.19.0"]
1922 es2015_enabled : ["false", "true"]
2023 steps :
2124 - name : Configure git to disable Windows line feeds
2225 run : " git config --global core.autocrlf false"
2326 shell : bash
24- - uses : actions/checkout@master
25- - name : Set up JDK 1.8 and SBT
26- uses : olafurpg /setup-scala@v10
27+ - uses : actions/checkout@v4
28+ - name : Set up JDK
29+ uses : actions /setup-java@v4
2730 with :
28- java-version : 1.8
31+ distribution : ${{ matrix.java.distribution }}
32+ java-version : ${{ matrix.java.version }}
33+ - name : Set up SBT
34+ uses : sbt/setup-sbt@v1
2935 - name : Style checks
3036 run : sbt styleCheck
3137 - name : Install NPM Dependencies
@@ -46,54 +52,66 @@ jobs:
4652 build-docs :
4753 runs-on : ubuntu-latest
4854 steps :
49- - uses : actions/checkout@master
50- - name : Set up JDK 1.8 and SBT
51- uses : olafurpg/setup-scala@v10
52- with :
53- java-version : 1.8
54- - name : Build Docs Site
55- run : sbt docs/fullLinkJS
56- - name : Export Next.js
57- run : cd docs && npm install && npm run export
55+ - uses : actions/checkout@v4
56+ - name : Set up JDK
57+ uses : actions/setup-java@v4
58+ with :
59+ distribution : temurin
60+ java-version : 17
61+ - name : Set up SBT
62+ uses : sbt/setup-sbt@v1
63+ - name : Build Docs Site
64+ run : sbt docs/fullLinkJS
65+ - name : Export Next.js
66+ run : cd docs && npm install && npm run export
5867 build-intellij-plugin :
5968 runs-on : ubuntu-latest
6069 steps :
61- - uses : actions/checkout@master
62- - name : Set up JDK 1.8 and SBT
63- uses : olafurpg/setup-scala@v10
64- with :
65- java-version : 1.8
66- - name : Build IntelliJ Plugin
67- run : sbt coreIntellijSupport/updateIntellij coreIntellijSupport/compile
70+ - uses : actions/checkout@v4
71+ - name : Set up JDK
72+ uses : actions/setup-java@v4
73+ with :
74+ distribution : temurin
75+ java-version : 17
76+ - name : Set up SBT
77+ uses : sbt/setup-sbt@v1
78+ - name : Build IntelliJ Plugin
79+ run : sbt coreIntellijSupport/updateIntellij coreIntellijSupport/compile
6880 publish :
6981 needs : [test, build-docs, build-intellij-plugin]
7082 runs-on : ubuntu-latest
7183 steps :
72- - uses : actions/checkout@master
73- - name : Set up JDK 1.8 and SBT
74- uses : olafurpg/setup-scala@v10
75- with :
76- java-version : 1.8
77- - run : git fetch --unshallow
78- - name : Publish with SBT
79- run : export JAVA_OPTS="-Xmx4g" && bash ./publish.sh
80- if : github.ref == 'refs/heads/main' || github.event_name == 'release'
81- env :
82- encrypted_key : ${{ secrets.key }}
83- encrypted_iv : ${{ secrets.iv }}
84- PGP_PASSPHRASE : ${{ secrets.pgp_passphrase }}
84+ - uses : actions/checkout@v4
85+ - name : Set up JDK
86+ uses : actions/setup-java@v4
87+ with :
88+ distribution : temurin
89+ java-version : 17
90+ - name : Set up SBT
91+ uses : sbt/setup-sbt@v1
92+ - run : git fetch --unshallow
93+ - name : Publish with SBT
94+ run : export JAVA_OPTS="-Xmx4g" && bash ./publish.sh
95+ if : github.ref == 'refs/heads/main' || github.event_name == 'release'
96+ env :
97+ encrypted_key : ${{ secrets.key }}
98+ encrypted_iv : ${{ secrets.iv }}
99+ PGP_PASSPHRASE : ${{ secrets.pgp_passphrase }}
85100 publish-intellij-plugin :
86101 needs : [test, build-docs, build-intellij-plugin]
87102 runs-on : ubuntu-latest
88103 steps :
89- - uses : actions/checkout@master
90- - name : Set up JDK 1.8 and SBT
91- uses : olafurpg/setup-scala@v10
92- with :
93- java-version : 1.8
94- - run : git fetch --unshallow
95- - name : Publish to Marketplace
96- run : sbt coreIntellijSupport/updateIntellij coreIntellijSupport/packageArtifact coreIntellijSupport/packageArtifact coreIntellijSupport/publishAutoChannel
97- if : github.ref == 'refs/heads/main' || github.event_name == 'release'
98- env :
99- IJ_PLUGIN_REPO_TOKEN : ${{ secrets.ij_plugin_repo_token }}
104+ - uses : actions/checkout@v4
105+ - name : Set up JDK
106+ uses : actions/setup-java@v4
107+ with :
108+ distribution : temurin
109+ java-version : 17
110+ - name : Set up SBT
111+ uses : sbt/setup-sbt@v1
112+ - run : git fetch --unshallow
113+ - name : Publish to Marketplace
114+ run : sbt coreIntellijSupport/updateIntellij coreIntellijSupport/packageArtifact coreIntellijSupport/packageArtifact coreIntellijSupport/publishAutoChannel
115+ if : github.ref == 'refs/heads/main' || github.event_name == 'release'
116+ env :
117+ IJ_PLUGIN_REPO_TOKEN : ${{ secrets.ij_plugin_repo_token }}
0 commit comments