Skip to content

Commit

Permalink
Merge pull request #10402 from SethTisue/merge-2.12-to-2.13-20230517-2
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed May 18, 2023
2 parents 366ba4a + 7d338f8 commit 0579c28
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
java-distribution: [temurin]
java: [8, 11, 17, 20]
# 21-ea will presumably be available from Temurin eventually, but for now:
include:
- os: ubuntu-latest
java-distribution: zulu
java: 21-ea
- os: windows-latest
java-distribution: zulu
java: 21-ea
runs-on: ${{matrix.os}}
steps:
- run: git config --global core.autocrlf false
Expand All @@ -29,15 +38,15 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
distribution: ${{matrix.java-distribution}}
java-version: ${{matrix.java}}
cache: sbt

- name: Build
run: |
sbt setupPublishCore generateBuildCharacterPropertiesFile headerCheck publishLocal
sbt -Dsbt.scala.version=2.12.18-M2 setupPublishCore generateBuildCharacterPropertiesFile headerCheck publishLocal
- name: Test
run: |
STARR=`cat buildcharacter.properties | grep ^maven.version.number | cut -d= -f2` && echo $STARR
sbt -Dstarr.version=$STARR setupValidateTest test:compile info testAll
sbt -Dsbt.scala.version=2.12.18-M2 -Dstarr.version=$STARR setupValidateTest test:compile info testAll
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ templates: # this has no effect on travis, it's just a place to put our template
name: build, publishLocal, build again
script:
- set -e
- sbt setupPublishCore generateBuildCharacterPropertiesFile headerCheck publishLocal
- sbt -Dsbt.scala.version=2.12.18-M2 setupPublishCore generateBuildCharacterPropertiesFile headerCheck publishLocal
- STARR=$(sed -n 's/^maven\.version\.number=//p' buildcharacter.properties) && echo $STARR
- sbt -Dstarr.version=$STARR setupValidateTest compile
- sbt -Dsbt.scala.version=2.12.18-M2 -Dstarr.version=$STARR setupValidateTest compile
workspaces:
create:
name: bootstrapped
Expand All @@ -53,7 +53,7 @@ templates: # this has no effect on travis, it's just a place to put our template
script:
- set -e
- STARR=$(sed -n 's/^maven\.version\.number=//p' buildcharacter.properties) && echo $STARR
- sbt -Dstarr.version=$STARR setupValidateTest Test/compile testAll1
- sbt -Dsbt.scala.version=2.12.18-M2 -Dstarr.version=$STARR setupValidateTest Test/compile testAll1

test2: &test2
stage: test
Expand All @@ -63,7 +63,7 @@ templates: # this has no effect on travis, it's just a place to put our template
script:
- set -e
- STARR=$(sed -n 's/^maven\.version\.number=//p' buildcharacter.properties) && echo $STARR
- sbt -Dstarr.version=$STARR setupValidateTest testAll2
- sbt -Dsbt.scala.version=2.12.18-M2 -Dstarr.version=$STARR setupValidateTest testAll2

jobs:
include:
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
script:
- set -e
- STARR=$(sed -n 's/^maven\.version\.number=//p' buildcharacter.properties) && echo $STARR
- sbt -Dscala.build.compileWithDotty=true library/compile
- sbt -Dsbt.scala.version=2.12.18-M2 -Dscala.build.compileWithDotty=true library/compile

- name: build benchmarks
if: type = pull_request OR repo != scala/scala
Expand All @@ -122,7 +122,7 @@ jobs:
script:
- set -e
- STARR=$(sed -n 's/^maven\.version\.number=//p' buildcharacter.properties) && echo $STARR
- sbt bench/Jmh/compile
- sbt -Dsbt.scala.version=2.12.18-M2 bench/Jmh/compile

- stage: build
if: type = pull_request OR type = push
Expand Down
2 changes: 1 addition & 1 deletion scripts/common
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi
SBT_VERSION=`grep sbt.version $WORKSPACE/project/build.properties | sed -n 's/sbt.version=\(.*\)/\1/p'`

SBT_CMD=${SBT_CMD-sbt}
SBT_CMD="$SBT_CMD -sbt-version $SBT_VERSION"
SBT_CMD="$SBT_CMD -Dsbt.scala.version=2.12.18-M2 -sbt-version $SBT_VERSION"

# repo to publish builds
integrationRepoUrl=${integrationRepoUrl-"https://scala-ci.typesafe.com/artifactory/scala-integration/"}
Expand Down
2 changes: 1 addition & 1 deletion versions.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Scala version used for bootstrapping (see README.md)
starr.version=2.13.11-M1
starr.version=2.13.11-M2

# These are the versions of the modules that go with this release.
# Artifact dependencies:
Expand Down

0 comments on commit 0579c28

Please sign in to comment.