Skip to content

Commit

Permalink
Fix OpenDream Caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Arrow768 committed Jun 27, 2023
1 parent acf311a commit 061cfe0
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions tools/ci/install_od.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
#!/bin/bash
set -eo pipefail

git clone https://github.com/OpenDreamProject/OpenDream.git $HOME/OpenDream
git -C $HOME/OpenDream submodule update --init --recursive
if [ -d "$HOME/OpenDream/" ];
then
echo "Using cached OpenDream directory."

git -C $HOME/OpenDream fetch origin
git -C $HOME/OpenDream reset --hard origin/master

git -C $HOME/OpenDream submodule update --remote


else
echo "Setting up OpenDream."

git clone https://github.com/OpenDreamProject/OpenDream.git $HOME/OpenDream
git -C $HOME/OpenDream submodule update --init --recursive
fi

dotnet restore $HOME/OpenDream
dotnet build $HOME/OpenDream/OpenDream.sln -c Release --property WarningLevel=1

0 comments on commit 061cfe0

Please sign in to comment.