-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,24 +4,17 @@ runs: | |
using: "composite" | ||
steps: | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v3.5.3 | ||
uses: actions/checkout@v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Set up JDK" | ||
uses: actions/setup-java@v3.12.0 | ||
uses: actions/setup-java@v4.0.0 | ||
with: | ||
distribution: "temurin" | ||
java-version: 17 | ||
cache: gradle | ||
distribution: temurin | ||
|
||
- name: "Initialize caches" | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/loom-cache | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-build-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-build- | ||
- name: "Setup Gradle" | ||
uses: gradle/[email protected] | ||
with: | ||
cache-read-only: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,20 +12,29 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
name: "Build" | ||
timeout-minutes: 15 | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v3.5.3 | ||
uses: actions/checkout@v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Setup environment" | ||
uses: ./.github/actions/setup-environment | ||
- name: "Set up JDK" | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
|
||
- name: "Setup Gradle" | ||
uses: gradle/[email protected] | ||
with: | ||
cache-read-only: false | ||
|
||
- name: "Build with gradle" | ||
run: ./gradlew build | ||
- name: "Run Gradle build" | ||
run: ./gradlew build --no-daemon | ||
|
||
run-client: | ||
needs: build | ||
|
@@ -35,7 +44,7 @@ jobs: | |
matrix: | ||
mod_loader: [ "fabric", "forge" ] | ||
name: Run ${{ matrix.mod_loader }} client | ||
timeout-minutes: 15 | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- name: "Checkout repository" | ||
|
@@ -60,7 +69,7 @@ jobs: | |
matrix: | ||
mod_loader: [ "fabric", "forge" ] | ||
name: Run ${{ matrix.mod_loader }} server | ||
timeout-minutes: 15 | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- name: "Checkout repository" | ||
|