Skip to content

Commit affac5e

Browse files
Create build workflow
1 parent e477d3c commit affac5e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

0 commit comments

Comments
 (0)