From 55113be5eaeae04d60bc9cfd88d8523befae9b15 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Tue, 11 Jul 2023 14:13:07 +0200 Subject: [PATCH] chore: Don't publish nightlies any longer since they are available in the compiler --- .github/workflows/check_scala3_nightly.yml | 22 ---------------------- build.sbt | 6 ------ project/V.scala | 5 +++-- 3 files changed, 3 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/check_scala3_nightly.yml diff --git a/.github/workflows/check_scala3_nightly.yml b/.github/workflows/check_scala3_nightly.yml deleted file mode 100644 index ca9cfb10eee..00000000000 --- a/.github/workflows/check_scala3_nightly.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: "Check Scala nightly release" -on: - workflow_dispatch: - schedule: - - cron: 0 5 * * * -jobs: - test_and_release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: "temurin" - java-version: "17" - - name: "Query maven-central" - run: | - sbt 'save-non-published-nightlies versions' - while IFS= read -r version; do - gh workflow run mtags-auto-release.yml -f scala_version=$version - done crossTestDyn(s, scalaV) }, - // this is one is needed for `.github/workflows/check_scala3_nightly` - Command.single("save-non-published-nightlies") { (s, path) => - val versions = Scala3NightlyVersions.nonPublishedNightlyVersions - IO.write(file(path), versions.map(_.original).mkString("\n")) - s - }, ) // -Xlint is unusable because of diff --git a/project/V.scala b/project/V.scala index de6f01175e5..b3ae25a34a9 100644 --- a/project/V.scala +++ b/project/V.scala @@ -46,8 +46,9 @@ object V { val lsp4j = "org.eclipse.lsp4j" % "org.eclipse.lsp4j" % lsp4jV val dap4j = "org.eclipse.lsp4j" % "org.eclipse.lsp4j.debug" % lsp4jV - def isNightliesEnabled: Boolean = - sys.env.get("CI").isDefined || sys.env.get("NIGHTLIES").isDefined + // https://github.com/scalameta/metals/issues/5427 + def isNightliesEnabled: Boolean = false + // sys.env.get("CI").isDefined || sys.env.get("NIGHTLIES").isDefined // List of supported Scala versions in SemanticDB. Needs to be manually updated // for every SemanticDB upgrade.