Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Commit a54ee1a

Browse files
committed
ci: update workflow setup steps for clarity
Refactor the setup steps in build.yml, buildRelease.yml, and linting.yml to include a name for the setup action, improving readability and maintainability.
1 parent f9ae3d2 commit a54ee1a

4 files changed

Lines changed: 34 additions & 31 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,18 @@ permissions:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13-
1413
steps:
15-
- uses: .github/workflows/setup.yml
14+
- name: Checkout repository
15+
uses: actions/checkout@v5
16+
17+
- name: Setup JDK
18+
uses: actions/setup-java@v5
19+
with:
20+
distribution: oracle
21+
java-version: 24
22+
cache: gradle
1623

1724
- name: Build
18-
run: ./gradlew clean build --debug
25+
run: |
26+
chmod +x gradlew
27+
./gradlew clean build

.github/workflows/buildRelease.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,23 @@ permissions:
1212
jobs:
1313
buildRelease:
1414
runs-on: ubuntu-latest
15-
1615
steps:
17-
- uses: .github/workflows/setup.yml
16+
- name: Checkout repository
17+
uses: actions/checkout@v5
18+
19+
- name: Setup JDK
20+
uses: actions/setup-java@v5
21+
with:
22+
distribution: oracle
23+
java-version: 24
24+
cache: gradle
1825

1926
- name: Build release
20-
run: ./gradlew clean buildRelease --debug
27+
run: |
28+
chmod +x gradlew
29+
./gradlew clean buildRelease
2130
2231
- name: Upload artifacts
2332
uses: actions/upload-artifact@v3
2433
with:
25-
path: release/*.jar
34+
path: release/*.jar

.github/workflows/linting.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@ permissions:
1010
jobs:
1111
spotlessCheck:
1212
runs-on: ubuntu-latest
13-
1413
steps:
15-
- uses: .github/workflows/setup.yml
14+
- name: Checkout repository
15+
uses: actions/checkout@v5
16+
17+
- name: Setup JDK
18+
uses: actions/setup-java@v5
19+
with:
20+
distribution: oracle
21+
java-version: 24
22+
cache: gradle
1623

1724
- name: Run Spotless check
1825
run: |

.github/workflows/setup.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)