From 726ddbfd43cf1e1f81254df2f5b715ace0a817cf Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 16 Oct 2024 08:05:29 +0100 Subject: [PATCH] CI: setup-sbt (#1531) * CI: setup-sbt * Update dependency-graph.yml --- .github/workflows/binary-compatibility-checks.yml | 5 ++++- .github/workflows/build-test-prValidation.yml | 13 +++++++++++-- .github/workflows/dependency-graph.yml | 3 +++ .github/workflows/generate-doc-check.yml | 5 ++++- .github/workflows/headers.yml | 5 ++++- .github/workflows/link-validator.yml | 7 +++++-- .github/workflows/nightly-1.0-builds.yml | 15 ++++++++++++--- .github/workflows/nightly-builds-aeron.yml | 5 ++++- .github/workflows/nightly-builds.yml | 15 ++++++++++++--- .github/workflows/publish-1.0-docs.yml | 5 ++++- .github/workflows/publish-1.0-nightly.yml | 5 ++++- .github/workflows/publish-1.1-docs.yml | 5 ++++- .github/workflows/publish-nightly.yml | 5 ++++- .github/workflows/scala3-build.yml | 5 ++++- .github/workflows/timing-tests.yml | 5 ++++- 15 files changed, 83 insertions(+), 20 deletions(-) diff --git a/.github/workflows/binary-compatibility-checks.yml b/.github/workflows/binary-compatibility-checks.yml index 0a01789b41..40637ce1d5 100644 --- a/.github/workflows/binary-compatibility-checks.yml +++ b/.github/workflows/binary-compatibility-checks.yml @@ -12,7 +12,7 @@ permissions: {} jobs: check-binary-compatibility: name: Check / Binary Compatibility - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' strategy: fail-fast: false @@ -31,6 +31,9 @@ jobs: distribution: temurin java-version: 11 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6 diff --git a/.github/workflows/build-test-prValidation.yml b/.github/workflows/build-test-prValidation.yml index d70f5e4b89..1138fe1eec 100644 --- a/.github/workflows/build-test-prValidation.yml +++ b/.github/workflows/build-test-prValidation.yml @@ -33,6 +33,9 @@ jobs: distribution: temurin java-version: 8 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Code style check run: |- cp .jvmopts-ci .jvmopts @@ -42,7 +45,7 @@ jobs: javafmtCheckAll pull-request-validation: name: Check / Tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} steps: @@ -59,6 +62,9 @@ jobs: distribution: temurin java-version: 8 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6 @@ -97,7 +103,7 @@ jobs: jdk-21-extra-tests: name: Java 21 Extra Tests (including all tests that need Java 9+) - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} steps: @@ -114,6 +120,9 @@ jobs: distribution: temurin java-version: 21 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6 diff --git a/.github/workflows/dependency-graph.yml b/.github/workflows/dependency-graph.yml index b1b393267d..407102e48d 100644 --- a/.github/workflows/dependency-graph.yml +++ b/.github/workflows/dependency-graph.yml @@ -10,10 +10,13 @@ jobs: dependency-graph: name: Update Dependency Graph runs-on: ubuntu-latest + if: github.repository == 'apache/pekko' permissions: # The API requires write permission on the repository # to submit dependencies contents: write steps: - uses: actions/checkout@v4 + - name: Install sbt + uses: sbt/setup-sbt@v1 - uses: scalacenter/sbt-dependency-submission@v2 diff --git a/.github/workflows/generate-doc-check.yml b/.github/workflows/generate-doc-check.yml index 9e2d7f4964..452d8db3d5 100644 --- a/.github/workflows/generate-doc-check.yml +++ b/.github/workflows/generate-doc-check.yml @@ -26,7 +26,7 @@ permissions: jobs: generate-doc-check: name: Generate doc check - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' steps: - name: Checkout @@ -41,6 +41,9 @@ jobs: distribution: temurin java-version: 11 + - 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 1711de3c1f..eea36289e9 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 @@ -19,6 +19,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 6f27adbcb1..fab0db1480 100644 --- a/.github/workflows/link-validator.yml +++ b/.github/workflows/link-validator.yml @@ -10,7 +10,7 @@ on: jobs: validate-links: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' steps: - name: Checkout @@ -28,9 +28,12 @@ jobs: distribution: temurin java-version: 11 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6 - + - name: Setup Coursier uses: coursier/setup-action@v1 diff --git a/.github/workflows/nightly-1.0-builds.yml b/.github/workflows/nightly-1.0-builds.yml index 7fcd1c88af..2aa6d09e80 100644 --- a/.github/workflows/nightly-1.0-builds.yml +++ b/.github/workflows/nightly-1.0-builds.yml @@ -10,7 +10,7 @@ permissions: {} jobs: pekko-cluster-metrics-sigar: name: Pekko Cluster Metrics Test with Sigar - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' steps: - name: Checkout @@ -26,6 +26,9 @@ jobs: distribution: temurin java-version: 11 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6 @@ -53,7 +56,7 @@ jobs: pekko-classic-remoting-tests: name: Pekko Classic Remoting Tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' strategy: fail-fast: false @@ -77,6 +80,9 @@ jobs: distribution: temurin java-version: 11 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6 @@ -100,7 +106,7 @@ jobs: jdk-nightly-build: name: JDK ${{ matrix.javaVersion }} / Scala ${{ matrix.scalaVersion }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' strategy: fail-fast: false @@ -124,6 +130,9 @@ jobs: distribution: temurin java-version: ${{ matrix.javaVersion }} + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6 diff --git a/.github/workflows/nightly-builds-aeron.yml b/.github/workflows/nightly-builds-aeron.yml index ae0ade3159..fd4a2a4743 100644 --- a/.github/workflows/nightly-builds-aeron.yml +++ b/.github/workflows/nightly-builds-aeron.yml @@ -11,7 +11,7 @@ jobs: pekko-artery-aeron-tests: name: Pekko Artery Aeron Tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' strategy: fail-fast: false @@ -33,6 +33,9 @@ jobs: distribution: temurin java-version: 11 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6 diff --git a/.github/workflows/nightly-builds.yml b/.github/workflows/nightly-builds.yml index f04e9b80e3..fd6ca2c6ab 100644 --- a/.github/workflows/nightly-builds.yml +++ b/.github/workflows/nightly-builds.yml @@ -10,7 +10,7 @@ permissions: {} jobs: pekko-cluster-metrics-sigar: name: Pekko Cluster Metrics Test with Sigar - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' steps: - name: Checkout @@ -25,6 +25,9 @@ jobs: distribution: temurin java-version: 11 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6 @@ -62,7 +65,7 @@ jobs: pekko-classic-remoting-tests: name: Pekko Classic Remoting Tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' strategy: fail-fast: false @@ -85,6 +88,9 @@ jobs: distribution: temurin java-version: 11 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6 @@ -108,7 +114,7 @@ jobs: jdk-nightly-build: name: JDK ${{ matrix.javaVersion }} / Scala ${{ matrix.scalaVersion }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' strategy: fail-fast: false @@ -133,6 +139,9 @@ jobs: distribution: temurin java-version: ${{ matrix.javaVersion }} + - 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 f5878a817f..6b5da78988 100644 --- a/.github/workflows/publish-1.0-docs.yml +++ b/.github/workflows/publish-1.0-docs.yml @@ -28,7 +28,7 @@ permissions: jobs: publish: name: Publish 1.0 docs - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' steps: # TODO we will need to change to use a release tag in future @@ -45,6 +45,9 @@ jobs: distribution: temurin java-version: 11 + - 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-nightly.yml b/.github/workflows/publish-1.0-nightly.yml index 6f2f8ec7d5..9438aa0daa 100644 --- a/.github/workflows/publish-1.0-nightly.yml +++ b/.github/workflows/publish-1.0-nightly.yml @@ -30,7 +30,7 @@ permissions: jobs: publish-nightly: name: Publish 1.0 nightly - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' env: DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} @@ -48,6 +48,9 @@ jobs: distribution: temurin java-version: 11 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6 diff --git a/.github/workflows/publish-1.1-docs.yml b/.github/workflows/publish-1.1-docs.yml index 7cf4282847..c47b6b65ed 100644 --- a/.github/workflows/publish-1.1-docs.yml +++ b/.github/workflows/publish-1.1-docs.yml @@ -28,7 +28,7 @@ permissions: jobs: publish: name: Publish 1.1 docs - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' steps: # TODO we will need to change to use a release tag in future @@ -44,6 +44,9 @@ jobs: distribution: temurin java-version: 11 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6 diff --git a/.github/workflows/publish-nightly.yml b/.github/workflows/publish-nightly.yml index 327147726e..27001edf87 100644 --- a/.github/workflows/publish-nightly.yml +++ b/.github/workflows/publish-nightly.yml @@ -30,7 +30,7 @@ permissions: jobs: publish-nightly: name: Publish nightly - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' env: DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} @@ -47,6 +47,9 @@ jobs: distribution: temurin java-version: 11 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6 diff --git a/.github/workflows/scala3-build.yml b/.github/workflows/scala3-build.yml index b3e8a31a58..bd0d3fc761 100644 --- a/.github/workflows/scala3-build.yml +++ b/.github/workflows/scala3-build.yml @@ -16,7 +16,7 @@ concurrency: jobs: test: name: Test - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' strategy: fail-fast: true @@ -33,6 +33,9 @@ jobs: distribution: temurin java-version: 11 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6 diff --git a/.github/workflows/timing-tests.yml b/.github/workflows/timing-tests.yml index 8db1b85815..45ce33ef6c 100644 --- a/.github/workflows/timing-tests.yml +++ b/.github/workflows/timing-tests.yml @@ -11,7 +11,7 @@ jobs: pekko-timing-sensitive-tests: name: Pekko Tests taggedAs TimingTest - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'apache/pekko' steps: @@ -27,6 +27,9 @@ jobs: distribution: temurin java-version: 11 + - name: Install sbt + uses: sbt/setup-sbt@v1 + - name: Cache Coursier cache uses: coursier/cache-action@v6