forked from
ewancroft.uk/atproto-connect
a Fabric Minecraft mod that connects the game to the AT Protocol.
1# Automatically build the project and run any configured tests for every push
2# and submitted pull request. This can help catch issues that only occur on
3# certain platforms or Java versions, and provides a first line of defence
4# against bad commits.
5
6name: build
7on: [pull_request, push]
8
9jobs:
10 build:
11 runs-on: ubuntu-24.04
12 steps:
13 - name: checkout repository
14 uses: actions/checkout@v4
15 - name: validate gradle wrapper
16 uses: gradle/actions/wrapper-validation@v4
17 - name: setup jdk
18 uses: actions/setup-java@v4
19 with:
20 java-version: '21'
21 distribution: 'microsoft'
22 - name: make gradle wrapper executable
23 run: chmod +x ./gradlew
24 - name: build
25 run: ./gradlew build
26 - name: capture build artifacts
27 uses: actions/upload-artifact@v4
28 with:
29 name: Artifacts
30 path: build/libs/