From 8b2fd28a540251ac64d70f658ac36f64f316e4db Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Thu, 21 Jan 2021 22:39:22 +0330 Subject: [PATCH] remove shit, add shit to improve performance --- .github/runner-files/ci-gradle.properties | 7 +++++++ .github/scripts/commit-repo.sh | 11 +++++------ .github/workflows/build.yml | 6 ++++++ 3 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 .github/runner-files/ci-gradle.properties diff --git a/.github/runner-files/ci-gradle.properties b/.github/runner-files/ci-gradle.properties new file mode 100644 index 00000000..753351b1 --- /dev/null +++ b/.github/runner-files/ci-gradle.properties @@ -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 diff --git a/.github/scripts/commit-repo.sh b/.github/scripts/commit-repo.sh index 3be07d0c..60a9f86b 100755 --- a/.github/scripts/commit-repo.sh +++ b/.github/scripts/commit-repo.sh @@ -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 . diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 040cea31..3796a8b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: |