File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI Build Check
2+
3+ on :
4+ push :
5+ branches : [ main, develop ]
6+ pull_request :
7+ branches : [ main, develop ]
8+
9+ jobs :
10+ build :
11+ strategy :
12+ matrix :
13+ os : [windows-latest, macos-latest, ubuntu-latest]
14+
15+ runs-on : ${{ matrix.os }}
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ # LibGDX typically uses Java 11 or newer
21+ - name : Set up JDK 17
22+ uses : actions/setup-java@v4
23+ with :
24+ java-version : ' 17'
25+ distribution : ' temurin'
26+ # Cache Gradle dependencies to speed up subsequent runs
27+ cache : ' gradle'
28+
29+ # Grant execute permission for gradlew (necessary for macOS and Linux)
30+ - name : Grant execute permission for gradlew
31+ run : chmod +x gradlew
32+ # Use an 'if' condition to only run this on non-Windows OS
33+ if : startsWith(runner.os, 'macOS') || startsWith(runner.os, 'Linux')
34+
35+ # This task compiles all modules (core, desktop, etc.)
36+ - name : Build with Gradle
37+ run : ./gradlew build
You can’t perform that action at this time.
0 commit comments