Skip to content

Commit

Permalink
Try build without container
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Nov 7, 2024
1 parent 0b82115 commit a6e1cc2
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions .github/actions/setup-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ runs:
baseVersion=$(sbt 'eval Build.baseVersion' | grep 'ans: String =' | awk '{ print $5 }' | xargs)
# `SNAPSHOT` substring is required to treat compiler as experimental
# All compilers build from branch are treated experimental
scalaVersion="${baseVersion}-${commitDate}-${commitHash}-SNAPSHOT"
echo $scalaVersion | base64
scalaVersion=${baseVersion}-${commitDate}-${commitHash}-SNAPSHOT
fi
baseMavenRepo="https://scala3.westeurope.cloudapp.azure.com/maven2"
Expand Down Expand Up @@ -74,26 +73,23 @@ runs:
echo "is-compiler-published=${isPublished}" >> $GITHUB_OUTPUT
- name: Build compiler
uses: addnab/docker-run-action@v3
if: steps.check-published.outputs.is-compiler-published == 'false'
with:
image: "lampepfl/dotty:2024-10-18"
options: -v ${{ github.workspace }}/compiler:/compiler/
run: |
echo '##################################'
echo "Release Scala in version: ${{ steps.calc-version.outputs.effective-scala-version }}"
echo "Maven repo at: ${{ steps.calc-version.outputs.effective-maven-url }}"
echo '##################################'
shell: bash
run: |
echo '##################################'
echo "Release Scala in version: ${{ steps.calc-version.outputs.effective-scala-version }}"
echo "Maven repo at: ${{ steps.calc-version.outputs.effective-maven-url }}"
echo '##################################'
cd /compiler/
PATH="/usr/lib/jvm/java-8-openjdk-amd64/bin:$PATH"
cd ${{ github.workspace }}/compiler/
# PATH="/usr/lib/jvm/java-8-openjdk-amd64/bin:$PATH"
java -version
set -x
sbt \
'set every publishTo := Some("Community Build Repo" at "${{ steps.calc-version.outputs.effective-maven-url }}")' \
\;'show scala3-bootstrapped/publishTo' \
\;'set every version := "${{ steps.calc-version.outputs.effective-scala-version }}"' \
\;'show scala3-bootstrapped/version' \
\;"scala3-interfaces/publish" \
\;"scala3-bootstrapped/publish"
java -version
set -x
sbt \
'set every publishTo := Some("Community Build Repo" at "${{ steps.calc-version.outputs.effective-maven-url }}")' \
\;'show scala3-bootstrapped/publishTo' \
\;'set every version := "${{ steps.calc-version.outputs.effective-scala-version }}"' \
\;'show scala3-bootstrapped/version' \
\;"scala3-interfaces/publish" \
\;"scala3-bootstrapped/publish"

0 comments on commit a6e1cc2

Please sign in to comment.