Skip to content

Commit

Permalink
Merge pull request #762 from samspills/sam/pin-ubuntu-runner
Browse files Browse the repository at this point in the history
pin to ubuntu-22.04 as default runner OS
  • Loading branch information
armanbilge authored Oct 17, 2024
2 parents a5a1496 + 6c62854 commit 885eb22
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
name: Build and Test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-22.04, macos-latest, windows-latest]
scala: [2.12]
java:
- temurin@8
Expand Down Expand Up @@ -196,12 +196,12 @@ jobs:
run: sbt githubWorkflowCheck

- name: Check headers and formatting
if: matrix.java == 'temurin@8' && matrix.os == 'ubuntu-latest'
if: matrix.java == 'temurin@8' && matrix.os == 'ubuntu-22.04'
shell: bash
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' headerCheckAll scalafmtCheckAll 'project /' scalafmtSbtCheck

- name: Check scalafix lints
if: matrix.java == 'temurin@8' && matrix.os == 'ubuntu-latest'
if: matrix.java == 'temurin@8' && matrix.os == 'ubuntu-22.04'
shell: bash
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' 'scalafixAll --check'

Expand All @@ -210,12 +210,12 @@ jobs:
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' test

- name: Check binary compatibility
if: matrix.java == 'temurin@8' && matrix.os == 'ubuntu-latest'
if: matrix.java == 'temurin@8' && matrix.os == 'ubuntu-22.04'
shell: bash
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' mimaReportBinaryIssues

- name: Generate API documentation
if: matrix.java == 'temurin@8' && matrix.os == 'ubuntu-latest'
if: matrix.java == 'temurin@8' && matrix.os == 'ubuntu-22.04'
shell: bash
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' doc

Expand Down Expand Up @@ -246,7 +246,7 @@ jobs:
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-22.04]
java: [temurin@8]
runs-on: ${{ matrix.os }}
timeout-minutes: 45
Expand Down Expand Up @@ -393,7 +393,7 @@ jobs:
if: github.event.repository.fork == false && github.event_name != 'pull_request'
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-22.04]
java: [temurin@8]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -510,7 +510,7 @@ jobs:
name: Validate Steward Config
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-22.04]
java: [temurin@11]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -535,7 +535,7 @@ jobs:
name: Generate Site
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-22.04]
java: [temurin@11]
runs-on: ${{ matrix.os }}
steps:
Expand Down
18 changes: 9 additions & 9 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ pull_request_rules:
- or:
- body~=labels:.*early-semver-patch
- body~=labels:.*early-semver-minor
- status-success=Build and Test (ubuntu-latest, 2.12, temurin@8, sbt-typelevelJVM)
- status-success=Build and Test (ubuntu-latest, 2.12, temurin@11, sbt-typelevelJVM)
- status-success=Build and Test (ubuntu-latest, 2.12, temurin@17, sbt-typelevelJVM)
- status-success=Build and Test (ubuntu-latest, 2.12, graal_22.3.2@11, sbt-typelevelJVM)
- status-success=Build and Test (ubuntu-latest, 2.12, graalvm@21, sbt-typelevelJVM)
- status-success=Build and Test (ubuntu-latest, 2.12, corretto@17, sbt-typelevelJVM)
- status-success=Build and Test (ubuntu-latest, 2.12, semeru@17, sbt-typelevelJVM)
- status-success=Build and Test (ubuntu-22.04, 2.12, temurin@8, sbt-typelevelJVM)
- status-success=Build and Test (ubuntu-22.04, 2.12, temurin@11, sbt-typelevelJVM)
- status-success=Build and Test (ubuntu-22.04, 2.12, temurin@17, sbt-typelevelJVM)
- status-success=Build and Test (ubuntu-22.04, 2.12, graal_22.3.2@11, sbt-typelevelJVM)
- status-success=Build and Test (ubuntu-22.04, 2.12, graalvm@21, sbt-typelevelJVM)
- status-success=Build and Test (ubuntu-22.04, 2.12, corretto@17, sbt-typelevelJVM)
- status-success=Build and Test (ubuntu-22.04, 2.12, semeru@17, sbt-typelevelJVM)
- status-success=Build and Test (macos-latest, 2.12, temurin@17, sbt-typelevelJVM)
- status-success=Build and Test (windows-latest, 2.12, temurin@8, sbt-typelevelJVM)
- status-success=Validate Steward Config (ubuntu-latest, temurin@11)
- status-success=Generate Site (ubuntu-latest, temurin@11)
- status-success=Validate Steward Config (ubuntu-22.04, temurin@11)
- status-success=Generate Site (ubuntu-22.04, temurin@11)
- '#approved-reviews-by>=1'
actions:
merge: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ trait GenerativeKeys {
lazy val githubWorkflowScalaVersions = settingKey[Seq[String]](
"A list of Scala versions on which to build the project (default: crossScalaVersions.value)")
lazy val githubWorkflowOSes =
settingKey[Seq[String]]("A list of OS names (default: [ubuntu-latest])")
settingKey[Seq[String]]("A list of OS names (default: [ubuntu-22.04])")

lazy val githubWorkflowDependencyPatterns = settingKey[Seq[String]](
"A list of file globes within the project which affect dependency information (default: [**/*.sbt, project/build.properties])")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ ${indent(jobs.map(compileJob(_, sbt)).mkString("\n\n"), 1)}
else
scalas
},
githubWorkflowOSes := Seq("ubuntu-latest"),
githubWorkflowOSes := Seq("ubuntu-22.04"),
githubWorkflowDependencyPatterns := Seq("**/*.sbt", "project/build.properties"),
githubWorkflowTargetBranches := Seq("**"),
githubWorkflowTargetTags := Seq(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ object WorkflowJob {
cond: Option[String] = None,
permissions: Option[Permissions] = None,
env: Map[String, String] = Map(),
oses: List[String] = List("ubuntu-latest"),
oses: List[String] = List("ubuntu-22.04"),
scalas: List[String] = List("2.13"),
javas: List[JavaSpec] = List(JavaSpec.temurin("11")),
needs: List[String] = List(),
Expand Down

0 comments on commit 885eb22

Please sign in to comment.