-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 813 Bytes
/
build.yaml
File metadata and controls
34 lines (27 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: 🛠️ Build with Gradle
on:
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the code and clone submodules
- name: Checkout code and clone submodules
uses: actions/checkout@v4
# Step 2: Set up JDK 21
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "temurin"
# Step 3: Setup Gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: false
# Step 4: Grant execute permissions to gradlew
- name: Grant execute permissions to gradlew
run: chmod +x ./gradlew
# Step 5: Build the project using Gradle
- name: Build with Gradle
run: ./gradlew build