Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setup-sbt GH action #756

Merged
merged 3 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading