Skip to content

Commit

Permalink
Merge pull request #7866 from lpcalisi/package/dotty
Browse files Browse the repository at this point in the history
add dotty (scala-3)
  • Loading branch information
ajayk authored Nov 15, 2023
2 parents 3191b3f + c76d57b commit 491a5f4
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions dotty.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package:
name: dotty
version: 3.3.1
epoch: 0
description: The Scala 3 compiler, also known as Dotty.
copyright:
- license: Apache-2.0
dependencies:
provides:
- scala=${{package.full-version}}

environment:
contents:
packages:
- ca-certificates-bundle
- build-base
- busybox
- openjdk-11-jre
- openjdk-11-default-jvm
- sbt

pipeline:
- uses: git-checkout
with:
repository: https://github.com/lampepfl/dotty
tag: ${{package.version}}
expected-commit: 721e7c87ee95b811984b7b992728729d7094c4c4

- runs: |
sbt dist/pack
install -dm755 "${{targets.destdir}}"/usr/share/scala/bin
install -dm755 "${{targets.destdir}}"/usr/share/scala/lib
rm -rf build/pack/bin/*.bat
mkdir -p ${{targets.destdir}}/usr/bin
mv dist/target/pack/bin/* ${{targets.destdir}}/usr/share/scala/bin/
mv dist/target/pack/lib/* ${{targets.destdir}}/usr/share/scala/lib/
ln -sf /usr/share/scala/bin/scala ${{targets.destdir}}/usr/bin/scala
ln -sf /usr/share/scala/bin/scalac ${{targets.destdir}}/usr/bin/scalac
ln -sf /usr/share/scala/bin/scaladoc ${{targets.destdir}}/usr/bin/scaladoc
update:
enabled: true
github:
identifier: lampepfl/dotty

0 comments on commit 491a5f4

Please sign in to comment.