remove shit, add shit to improve performance

This commit is contained in:
Aria Moradi 2021-01-21 22:39:22 +03:30
parent 466f21a7e8
commit 8b2fd28a54
3 changed files with 18 additions and 6 deletions

View File

@ -0,0 +1,7 @@
org.gradle.daemon=false
org.gradle.jvmargs=-Xmx5120m
org.gradle.workers.max=5
org.gradle.parallel=true
kotlin.incremental=false
kotlin.compiler.execution.strategy=in-process

View File

@ -2,21 +2,20 @@
cp ../master/repo/server-r* .
new_build=$(ls | tail -1)
echo "$new_build"
echo "New build file name: $new_build"
diff $new_build server-latest.jar > /dev/null
if [ $? -eq 1 ]; then
echo "copy"
echo "This is different to latest, replace latest."
cp -f $new_build server-latest.jar
else
echo "rm"
echo "This is the same as latest, throw it away."
rm $new_build
fi
echo "shit"
#git config --global user.email "github-actions[bot]@users.noreply.github.com"
#git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git status
if [ -n "$(git status --porcelain)" ]; then
git add .

View File

@ -42,6 +42,12 @@ jobs:
with:
java-version: 1.8
- name: Copy CI gradle.properties
run: |
cd master
mkdir -p ~/.gradle
cp .github/runner-files/ci-gradle.properties ~/.gradle/gradle.properties
- name: Download and process android.jar
if: github.event_name == 'push' && github.repository == 'AriaMoradi/Tachidesk'
run: |