From 33c7183a9eed91cd63ecbf67f0299469aa2c8700 Mon Sep 17 00:00:00 2001 From: VidTu Date: Fri, 27 Dec 2024 04:08:58 +0300 Subject: [PATCH] ci: Impose an upper bound for CI time --- .github/workflows/build.yml | 11 ++++++++++- README.md | 7 ++++--- gradle.properties | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ca0ba1..626e5bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,20 +24,29 @@ name: 'Build' on: [ pull_request, push, workflow_dispatch ] jobs: build: + name: 'Build' runs-on: ubuntu-latest + timeout-minutes: 15 steps: - name: 'Checkout' + timeout-minutes: 1 uses: actions/checkout@v4 + with: + persist-credentials: false - name: 'Setup JDK' + timeout-minutes: 1 uses: actions/setup-java@v4 with: java-version: 8 distribution: 'temurin' - name: 'Setup Gradle' + timeout-minutes: 5 uses: gradle/actions/setup-gradle@v4 - name: 'Build' + timeout-minutes: 5 run: './gradlew -Dorg.gradle.daemon=false build --no-daemon' - - name: 'Upload artifacts' + - name: 'Upload' + timeout-minutes: 5 uses: actions/upload-artifact@v4 with: name: 'Artifacts' diff --git a/README.md b/README.md index ddec685..ef7b2aa 100644 --- a/README.md +++ b/README.md @@ -87,8 +87,9 @@ Check out [LICENSE](https://github.com/VidTu/Ksyxis/blob/main/LICENSE) for more ## Building -1. Install Java 8 or newer* and dump it into [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) and/or JAVA_HOME. -2. Run `./gradlew build` from the terminal/PowerShell. -3. Grab the JAR from the `./build/libs/` folder. +1. Have 1 GB of free RAM, 1 GB of free disk space, and an active internet connection. +2. Install Java 8 or newer* and dump it into PATH and/or JAVA_HOME. +3. Run `./gradlew build` from the terminal/PowerShell. +4. Grab the JAR from the `./build/libs/` folder. * Actual Java version used currently is 8, Gradle will automatically download it. diff --git a/gradle.properties b/gradle.properties index d7e7af5..8f5dc98 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,7 +21,7 @@ # SOFTWARE. # Gradle -org.gradle.jvmargs=-Xmx2G +org.gradle.jvmargs=-Xmx1G org.gradle.parallel=true org.gradle.caching=true