Skip to content

Commit

Permalink
Add setup-sbt GH action (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonsviridov-src authored Oct 17, 2024
1 parent a4eb361 commit e327430
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
cache: "sbt"
java-version: ${{ matrix.java }}

- uses: sbt/setup-sbt@v1

- name: Main project tests
run: sbt test

Expand All @@ -43,6 +45,8 @@ jobs:
cache: "sbt"
java-version: 17

- uses: sbt/setup-sbt@v1

- name: Build Dockerised CLI
run: sbt cli/docker

Expand Down Expand Up @@ -84,6 +88,15 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: yarn global add @bazel/bazelisk

- uses: actions/setup-java@v3
with:
distribution: "temurin"
cache: "sbt"
java-version: 17

- uses: sbt/setup-sbt@v1

- run: sbt build
- run: echo "$PWD/out/bin" >> $GITHUB_PATH
- name: Auto-index scip-java codebase
Expand All @@ -101,12 +114,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 11
cache: "sbt"

- uses: sbt/setup-sbt@v1

- run: sbt --client checkAll

- name: Run sample benchmarks
Expand All @@ -129,6 +145,7 @@ jobs:
cache: "sbt"
java-version: ${{ matrix.java }}

- uses: sbt/setup-sbt@v1

- run: |
sbt build publishM2 publishLocal dumpScipJavaVersion
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/mdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
distribution: 'temurin'
java-version: 11
cache: 'sbt'
- uses: sbt/setup-sbt@v1
- run: sbt docs/docusaurusPublishGhpages
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
1 change: 1 addition & 0 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
distribution: 'temurin'
java-version: 8
cache: 'sbt'
- uses: sbt/setup-sbt@v1
- uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
distribution: 'temurin'
java-version: 8
cache: 'sbt'
- uses: sbt/setup-sbt@v1
- name: Publish ${{ github.ref }}
run: sbt ci-release
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sourcegraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
java-version: 8
cache: "sbt"

- uses: sbt/setup-sbt@v1

- name: Publish CLI locally
run: sbt publishLocal dumpScipJavaVersion

Expand Down

0 comments on commit e327430

Please sign in to comment.