Skip to content

Commit

Permalink
CI: setup-sbt (#869)
Browse files Browse the repository at this point in the history
* CI: setup-sbt

* Update dependency-graph.yml
  • Loading branch information
pjfanning authored Oct 18, 2024
1 parent ca36897 commit 210ef7f
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 10 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/check-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
style-compile-mima:
name: Compile, Code Style, Binary Compatibility
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
JAVA_OPTS: -Xms2G -Xmx3G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8

Expand All @@ -34,6 +34,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

Expand All @@ -45,7 +48,7 @@ jobs:

documentation:
name: ScalaDoc, Documentation with Paradox
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
JAVA_OPTS: -Xms2G -Xmx3G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8

Expand All @@ -62,6 +65,9 @@ jobs:
distribution: temurin
java-version: 11

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

Expand All @@ -73,7 +79,7 @@ jobs:
# run: cs launch net.runne::site-link-validator:0.2.2 -- scripts/link-validator.conf

connectors:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand Down Expand Up @@ -148,6 +154,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/dependency-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ jobs:
dependency-graph:
name: Update Dependency Graph
runs-on: ubuntu-latest
if: github.repository == 'apache/pekko-connectors'
steps:
- uses: actions/checkout@v4
- name: Install sbt
uses: sbt/setup-sbt@v1
- uses: scalacenter/sbt-dependency-submission@v2
5 changes: 4 additions & 1 deletion .github/workflows/headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions: {}
jobs:
check-headers:
name: Check headers
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -22,6 +22,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/link-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/nightly-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions: {}
jobs:
test-compile:
name: Compile
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -31,6 +31,9 @@ jobs:
distribution: temurin
java-version: ${{ matrix.JDK }}

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

Expand All @@ -39,7 +42,7 @@ jobs:

integration-tests:
name: Pekko Connectors Integration tests
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: github.repository == 'apache/pekko-connectors'
steps:
- name: Checkout
Expand All @@ -53,6 +56,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/nightly-pekko-1.0-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
jobs:
test-compile:
name: Compile
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -36,6 +36,9 @@ jobs:
distribution: temurin
java-version: ${{ matrix.JDK }}

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish-1.0-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
# runs on main repo only
if: github.repository == 'apache/pekko-connectors'
name: Publish
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
JAVA_OPTS: -Xms2G -Xmx3G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
steps:
Expand All @@ -25,6 +25,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Build Documentation
run: |-
sbt "set ThisBuild / version := \"1.0.2\"; docs/paradox; unidoc"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish-1.1-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
# runs on main repo only
if: github.repository == 'apache/pekko-connectors'
name: Publish
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
JAVA_OPTS: -Xms2G -Xmx3G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
steps:
Expand All @@ -24,6 +24,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Build Documentation
run: |-
sbt "set ThisBuild / version := \"1.1.0-M1\"; docs/paradox; unidoc"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
# runs on main repo only
if: github.repository == 'apache/pekko-connectors'
name: Publish
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
JAVA_OPTS: -Xms2G -Xmx3G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
steps:
Expand All @@ -26,6 +26,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Publish to Apache Maven repo
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
Expand Down

0 comments on commit 210ef7f

Please sign in to comment.