Skip to content

Commit 426b93a

Browse files
committed
Backport CI fix for 4.1.1
1 parent 1862360 commit 426b93a

File tree

3 files changed

+32
-13
lines changed

3 files changed

+32
-13
lines changed

.github/workflows/release-expression-compiler.yml

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,46 @@ jobs:
2727
publish:
2828
if: startsWith(github.ref, 'refs/tags/v')
2929
runs-on: ubuntu-latest
30+
needs: [test]
3031
env:
3132
SCALA_VERSION: ${{ inputs.scala-version }}
3233
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
3334
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
3435
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
3536
steps:
3637
- uses: actions/checkout@v4
37-
with:
38+
with:
3839
submodules: true
3940
- uses: coursier/[email protected]
4041
with:
4142
apps: sbt
4243
jvm: 'adopt:1.8.0-292'
4344
- name: setup GPG secret key
4445
run: echo ${{ secrets.PGP_SECRET }} | base64 --decode | gpg --batch --import
45-
- run: sbt 'expressionCompiler3_3/publishSigned;sonatypeBundleRelease'
46-
if: startsWith(inputs.scala-version, '3.1') || startsWith(inputs.scala-version, '3.2') || startsWith(inputs.scala-version, '3.3')
47-
- run: sbt 'expressionCompiler3_4/publishSigned;sonatypeBundleRelease'
48-
if: startsWith(inputs.scala-version, '3.4')
49-
- run: sbt 'expressionCompiler3_0/publishSigned;sonatypeBundleRelease'
50-
if: startsWith(inputs.scala-version, '3.0')
51-
- run: sbt 'expressionCompiler2_13/publishSigned;sonatypeBundleRelease'
52-
if: startsWith(inputs.scala-version, '2.13')
53-
- run: sbt 'expressionCompiler2_12/publishSigned;sonatypeBundleRelease'
54-
if: startsWith(inputs.scala-version, '2.12')
46+
47+
- name: publish task
48+
run: |
49+
set -e
50+
51+
VERSION='${{ inputs.scala-version }}'
52+
if [[ $VERSION == 2.12.* ]]; then
53+
echo "Using 2.12 publish task"
54+
sbt 'expressionCompiler212/publishSigned;sonatypeBundleRelease'
55+
56+
elif [[ $VERSION == 2.13.* ]]; then
57+
echo "Using 2.13 publish task"
58+
sbt 'expressionCompiler213/publishSigned;sonatypeBundleRelease'
59+
60+
elif [[ $VERSION == 3.0.* ]]; then
61+
echo "Using 3.0 publish task"
62+
sbt 'expressionCompiler30/publishSigned;sonatypeBundleRelease'
63+
64+
elif [[ $VERSION == 3.1.* || $VERSION == 3.2.* || $VERSION == 3.3.* ]]; then
65+
echo "Using 3.1+ publish task"
66+
sbt 'expressionCompiler31Plus/publishSigned;sonatypeBundleRelease'
67+
68+
elif [[ $VERSION == 3.* ]]; then
69+
echo "Using 3.4+ publish task"
70+
sbt 'expressionCompiler34Plus/publishSigned;sonatypeBundleRelease'
71+
fi
72+
>>>>>>> Stashed changes

build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,13 @@ lazy val expressionCompiler = projectMatrix
165165
crossScalaVersions ++= CrossVersion
166166
.partialVersion(scalaVersion.value)
167167
.collect {
168+
// NOTE: Adding new handle for Scala version requires updating ./.github/workflows/release-expression-compiler.yml
168169
// format: off
169170
case (2, 12) => Seq("2.12.19", "2.12.18", "2.12.17", "2.12.16", "2.12.15", "2.12.14", "2.12.13")
170171
case (2, 13) => Seq("2.13.14", "2.13.13", "2.13.12", "2.13.11", "2.13.10", "2.13.9", "2.13.8", "2.13.7", "2.13.6", "2.13.5", "2.13.4")
171172
case (3, 0) => Seq("3.0.2", "3.0.1", "3.0.0")
172173
case (3, 1 | 2 | 3) => Seq("3.3.3", "3.3.2", "3.3.1", "3.3.0", "3.2.2", "3.2.1", "3.2.0", "3.1.3", "3.1.2", "3.1.1", "3.1.0")
173-
case (3, _) => Seq("3.5.0-RC1", "3.4.2", "3.4.1", "3.4.0")
174+
case (3, _) => Seq("3.5.1-RC1", "3.5.0-RC5", "3.4.2", "3.4.1", "3.4.0")
174175
// format: on
175176
}
176177
.toSeq

project/Dependencies.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ object Dependencies {
66
val scala213 = scalaEnvVersion.filter(isScala213).getOrElse("2.13.14")
77
val scala30 = scalaEnvVersion.filter(isScala30).getOrElse("3.0.2")
88
val scala31Plus = scalaEnvVersion.filter(isScala33).getOrElse("3.3.3")
9-
val scala34Plus = scalaEnvVersion.filter(isScala34).getOrElse("3.5.0-RC1")
9+
val scala34Plus = scalaEnvVersion.filter(isScala34).getOrElse("3.5.1-RC1")
1010
val asmVersion = "9.7"
1111
val coursierVersion = "2.1.10"
1212

0 commit comments

Comments
 (0)