Skip to content

Commit

Permalink
ci: Impose an upper bound for CI time
Browse files Browse the repository at this point in the history
  • Loading branch information
VidTu committed Dec 27, 2024
1 parent 58f306d commit 33c7183
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ Check out [LICENSE](https://github.com/VidTu/Ksyxis/blob/main/LICENSE) for more

## Building

1. Install Java 8 or newer<sup>*</sup> 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<sup>*</sup> 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.

<sup>* Actual Java version used currently is 8, Gradle will automatically download it.</sup>
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# SOFTWARE.

# Gradle
org.gradle.jvmargs=-Xmx2G
org.gradle.jvmargs=-Xmx1G
org.gradle.parallel=true
org.gradle.caching=true

Expand Down

0 comments on commit 33c7183

Please sign in to comment.