forked from libgdx/libgdx
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 1.03 KB
/
build-pullrequest.yml
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
35
36
37
name: Build pull request
on:
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
build-java:
if: "!contains(github.event.head_commit.message, 'ci skip')"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: 'recursive'
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Check MetalANGLE generation
run: |
./gradlew :backends:gdx-backend-robovm-metalangle:generate
./gradlew :backends:gdx-backend-robovm-metalangle:spotlessApply
if [[ `git status --porcelain` ]]; then echo "::error The MetalANGLE backend is missing changes, please run \`./gradlew :backends:gdx-backend-robovm-metalangle:generate\`"; exit 1; fi
- name: Build & test Java code
run: |
./gradlew fetchNatives
./gradlew build