From dccec37c245393c27f2bb4f8ca760f6f4120029b Mon Sep 17 00:00:00 2001 From: danicheg Date: Sat, 11 Jan 2025 22:17:16 +0300 Subject: [PATCH 1/3] Add Scala 2.13.16 support --- build.sbt | 1 + .../ch/epfl/scala/profilers/tools/SettingsOps.scala | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 plugin/src/main/scala-2.13.16/ch/epfl/scala/profilers/tools/SettingsOps.scala diff --git a/build.sbt b/build.sbt index 1d17e32..6a994fa 100644 --- a/build.sbt +++ b/build.sbt @@ -28,6 +28,7 @@ val bin212 = Seq("2.12.20", "2.12.19", "2.12.18", "2.12.17", "2.12.16", "2.12.15", "2.12.14", "2.12.13") val bin213 = Seq( + "2.13.16", "2.13.15", "2.13.14", "2.13.13", diff --git a/plugin/src/main/scala-2.13.16/ch/epfl/scala/profilers/tools/SettingsOps.scala b/plugin/src/main/scala-2.13.16/ch/epfl/scala/profilers/tools/SettingsOps.scala new file mode 100644 index 0000000..aadf96d --- /dev/null +++ b/plugin/src/main/scala-2.13.16/ch/epfl/scala/profilers/tools/SettingsOps.scala @@ -0,0 +1,8 @@ +package ch.epfl.scala.profilers.tools + +import scala.tools.nsc.Global + +object SettingsOps { + def areStatisticsEnabled(g: Global): Boolean = + g.settings.areStatisticsEnabled +} From 6e89cce740e71a6af291d2df3b27b74a4c4df497 Mon Sep 17 00:00:00 2001 From: danicheg Date: Sat, 11 Jan 2025 22:17:56 +0300 Subject: [PATCH 2/3] Add Scala 2.13.16 to CI --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6b65d1..817fc4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,6 +59,7 @@ jobs: - 2.13.13 - 2.13.14 - 2.13.15 + - 2.13.16 runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 From d14054d511a097b07ffa9e564a15d20c192daa15 Mon Sep 17 00:00:00 2001 From: danicheg Date: Sat, 11 Jan 2025 23:38:04 +0300 Subject: [PATCH 3/3] Install SBT explicitly in CI --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 817fc4b..9e084bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: sbt/setup-sbt@v1 - name: Setup Java (temurin@8) uses: actions/setup-java@v4 with: @@ -26,6 +27,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: sbt/setup-sbt@v1 - name: Setup Java (temurin@8) uses: actions/setup-java@v4 with: @@ -65,6 +67,7 @@ jobs: - uses: actions/checkout@v4 with: submodules: true + - uses: sbt/setup-sbt@v1 - name: Setup Java (temurin@8) uses: actions/setup-java@v4 with: @@ -83,6 +86,7 @@ jobs: - uses: actions/checkout@v4 with: submodules: true + - uses: sbt/setup-sbt@v1 - name: Setup Java (temurin@8) uses: actions/setup-java@v4 with: