File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed
Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 5757
5858 - uses : coursier/cache-action@v6.4
5959 - uses : VirtusLab/scala-cli-setup@v1.0.1
60+ with :
61+ jvm : 8
6062
6163 - name : " Bisect project"
6264 shell : bash
Original file line number Diff line number Diff line change 1- FROM lampepfl/dotty:2023-06-21-2
1+ FROM ubuntu:22.04
22
33ARG JDK_VERSION
44
5+ ENV LANG=C.UTF-8
6+ ENV DEBIAN_FRONTEND=noninteractive
7+ ENV TZ=Europe/Zurich
8+
59# install requirements, install and configure sdkman
610# see https://sdkman.io/usage for configuration options
711ENV SDKMAN_DIR=/root/.sdkman
8- RUN apt -y install curl ca-certificates zip unzip openssl findutils && \
12+ RUN apt-get update && apt-get upgrade -y && \
13+ apt-get install -y software-properties-common && \
14+ apt-get install -y curl ca-certificates zip unzip openssl findutils bash git ssh htop nano vim-tiny zile && \
15+ (curl -fsSL https://deb.nodesource.com/setup_18.x | bash -) && apt-get install -y nodejs && \
916 curl -s "https://get.sdkman.io" | bash && \
1017 echo "sdkman_auto_answer=true" > $SDKMAN_DIR/etc/config && \
1118 echo "sdkman_auto_selfupdate=false" >> $SDKMAN_DIR/etc/config
1219
1320# Source sdkman to make the sdk command available and install candidate
14- RUN bash -c "source $SDKMAN_DIR/bin/sdkman-init.sh && sdk install java $JDK_VERSION"
21+ RUN bash -c "source $SDKMAN_DIR/bin/sdkman-init.sh && sdk install java $JDK_VERSION && sdk install sbt 1.9.1"
1522# Add candidate path to $PATH environment variable
1623ENV JAVA_HOME="$SDKMAN_DIR/candidates/java/current"
17- ENV PATH="$JAVA_HOME/bin:$PATH"
24+ ENV SBT_HOME="$SDKMAN_DIR/candidates/sbt/current"
25+ ENV PATH="$JAVA_HOME/bin:$SBT_HOME/bin:$PATH"
1826
1927WORKDIR /build
2028COPY . /build/
Original file line number Diff line number Diff line change @@ -14,5 +14,9 @@ echo 'scalaVersion := "'$scala_version'"' > build.sbt
1414echo ' @main def run = println("Warmed up.")' > A.scala
1515
1616for version in $( echo $SBT_VERSIONS ) ; do
17+ java -version
1718 sbt --sbt-version $version --batch run
1819done
20+
21+ cd ..
22+ rm -rf warm_up
You can’t perform that action at this time.
0 commit comments