Skip to content

Commit

Permalink
Fix building compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Nov 7, 2024
1 parent cedfe22 commit 97f7f8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
cd compiler
git --no-pager log -1
commitHash=$(git rev-parse --short=7 HEAD)
baseVersion=$(cat project/Build.scala | grep 'val baseVersion =' | xargs | awk '{ print $4 }')
baseVersion=$(sbt "eval Build.baseVersion" | grep 'ans: String =' | xargs | awk '{ print $5 }')
# `SNAPSHOT` substring is required to treat compiler as experimental
# All compilers build from branch are treated experimental
scalaVersion="${baseVersion}-bin-${commitHash}-SNAPSHOT"
Expand Down
6 changes: 2 additions & 4 deletions compiler-builder/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ echo '##################################'

cd "$repoDir"

sed -i -r 's/val baseVersion = ".*"/val baseVersion = "'$scalaVersion'"/' project/Build.scala
export RELEASEBUILD=yes

sbt \
sbt --batch \
\;'set every sonatypePublishToBundle := Some("Community Build Repo" at sys.env("CB_MVN_REPO_URL"))' \
\;'set every version := "'$scalaVersion'"' \
\;"scala3-bootstrapped/publish"

0 comments on commit 97f7f8a

Please sign in to comment.