From 8eaf217f73470041ec8ce98a3bc394814e66f90b Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sun, 13 Oct 2024 17:47:54 +0100 Subject: [PATCH] CI: setup-sbt --- .github/workflows/check-build-test.yml | 15 ++++++++++++--- .github/workflows/headers.yml | 5 ++++- .github/workflows/link-validator.yml | 3 +++ .github/workflows/nightly-builds.yaml | 10 ++++++++-- .github/workflows/nightly-pekko-1.0-builds.yaml | 5 ++++- .github/workflows/publish-1.0-docs.yml | 5 ++++- .github/workflows/publish-1.1-docs.yml | 5 ++++- .github/workflows/publish-nightly.yml | 5 ++++- 8 files changed, 43 insertions(+), 10 deletions(-) diff --git a/.github/workflows/check-build-test.yml b/.github/workflows/check-build-test.yml index 84a5c4d68..080235669 100644 --- a/.github/workflows/check-build-test.yml +++ b/.github/workflows/check-build-test.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/headers.yml b/.github/workflows/headers.yml index 221b526be..9a3121162 100644 --- a/.github/workflows/headers.yml +++ b/.github/workflows/headers.yml @@ -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 @@ -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 diff --git a/.github/workflows/link-validator.yml b/.github/workflows/link-validator.yml index 124fc5c7b..078c4c348 100644 --- a/.github/workflows/link-validator.yml +++ b/.github/workflows/link-validator.yml @@ -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 diff --git a/.github/workflows/nightly-builds.yaml b/.github/workflows/nightly-builds.yaml index 8d2444fb1..f1b875eb3 100644 --- a/.github/workflows/nightly-builds.yaml +++ b/.github/workflows/nightly-builds.yaml @@ -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: @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/nightly-pekko-1.0-builds.yaml b/.github/workflows/nightly-pekko-1.0-builds.yaml index 92d98d80a..7e12ba9be 100644 --- a/.github/workflows/nightly-pekko-1.0-builds.yaml +++ b/.github/workflows/nightly-pekko-1.0-builds.yaml @@ -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: @@ -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 diff --git a/.github/workflows/publish-1.0-docs.yml b/.github/workflows/publish-1.0-docs.yml index 31a94a8cd..e362b0b2c 100644 --- a/.github/workflows/publish-1.0-docs.yml +++ b/.github/workflows/publish-1.0-docs.yml @@ -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: @@ -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" diff --git a/.github/workflows/publish-1.1-docs.yml b/.github/workflows/publish-1.1-docs.yml index 5bb4559ba..ba4cc84aa 100644 --- a/.github/workflows/publish-1.1-docs.yml +++ b/.github/workflows/publish-1.1-docs.yml @@ -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: @@ -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" diff --git a/.github/workflows/publish-nightly.yml b/.github/workflows/publish-nightly.yml index 1ed21b1ac..4537d6287 100644 --- a/.github/workflows/publish-nightly.yml +++ b/.github/workflows/publish-nightly.yml @@ -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: @@ -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 }}