Skip to content

Commit 999bdea

Browse files
committed
sbt
1 parent 07290f6 commit 999bdea

File tree

3 files changed

+674
-8
lines changed

3 files changed

+674
-8
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,30 +78,30 @@ jobs:
7878
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
7979

8080
- name: Check that workflows are up to date
81-
run: sbt githubWorkflowCheck
81+
run: ./sbt githubWorkflowCheck
8282

8383
- name: Check formatting
8484
if: matrix.java == 'temurin@8'
85-
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' scalafmtCheckAll 'project /' scalafmtSbtCheck
85+
run: ./sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' scalafmtCheckAll 'project /' scalafmtSbtCheck
8686

8787
- name: scalaJSLink
8888
if: matrix.project == 'rootJS'
89-
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' Test/scalaJSLinkerResult
89+
run: ./sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' Test/scalaJSLinkerResult
9090

9191
- name: nativeLink
9292
if: matrix.project == 'rootNative'
93-
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' Test/nativeLink
93+
run: ./sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' Test/nativeLink
9494

9595
- name: Test
96-
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' test
96+
run: ./sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' test
9797

9898
- name: Check binary compatibility
9999
if: matrix.java == 'temurin@8'
100-
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' mimaReportBinaryIssues
100+
run: ./sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' mimaReportBinaryIssues
101101

102102
- name: Generate API documentation
103103
if: matrix.java == 'temurin@8'
104-
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' doc
104+
run: ./sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' doc
105105

106106
- name: Make target directories
107107
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master')
@@ -244,4 +244,4 @@ jobs:
244244
(echo "$PGP_PASSPHRASE"; echo; echo) | gpg --command-fd 0 --pinentry-mode loopback --change-passphrase $(gpg --list-secret-keys --with-colons 2> /dev/null | grep '^sec:' | cut --delimiter ':' --fields 5 | tail -n 1)
245245
246246
- name: Publish
247-
run: sbt '++ ${{ matrix.scala }}' tlRelease
247+
run: ./sbt '++ ${{ matrix.scala }}' tlRelease

build.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ ThisBuild / tlBaseVersion := "2.5"
88
val temurin = JavaSpec.temurin("8")
99
ThisBuild / githubWorkflowJavaVersions := Seq(temurin)
1010

11+
ThisBuild / githubWorkflowSbtCommand := "./sbt"
12+
1113
ThisBuild / githubWorkflowBuildMatrixExclusions ++= Seq(
1214
MatrixExclude(Map("scala" -> scala3, "project" -> "rootJVM")), // TODO
1315
MatrixExclude(

0 commit comments

Comments
 (0)