Skip to content

Commit

Permalink
Only do shallow clones
Browse files Browse the repository at this point in the history
  • Loading branch information
Cervator committed Apr 21, 2021
1 parent eec5bad commit b5c4e76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ RUN mkdir -p ~/.gradle \

# Now grab some source code and run a minimal Gradle build to force fetching of wrappers and any immediate dependencies
RUN cd ~/ws \
&& git clone https://github.com/MovingBlocks/joml-ext.git \
&& git clone --depth 1 https://github.com/MovingBlocks/joml-ext.git \
&& cd joml-ext \
&& ./gradlew compileTestJava \
&& rm -rf ~/ws/joml-ext

# This step builds the Terasology engine. As a special step it prepares a "build harness" to build modules standalone
RUN cd ~/ws \
&& git clone https://github.com/MovingBlocks/Terasology.git \
&& git clone --depth 1 https://github.com/MovingBlocks/Terasology.git \
&& cd Terasology \
&& ./gradlew extractNatives extractConfig compileTestJava \
&& mkdir -p ~/ws/harness && mkdir -p ~/ws/harness/build-logic/src \
Expand All @@ -32,7 +32,7 @@ RUN cd ~/ws \
&& rm -rf ~/ws/Terasology

RUN cd ~/ws \
&& git clone https://github.com/Terasology/Sample.git \
&& git clone --depth 1 https://github.com/Terasology/Sample.git \
&& cd Sample \
&& cp -r ~/ws/harness/* . \
&& ./gradlew compileTestJava \
Expand Down

0 comments on commit b5c4e76

Please sign in to comment.