Skip to content

[ALPHA] Port to 24w40a #62

[ALPHA] Port to 24w40a

[ALPHA] Port to 24w40a #62

Workflow file for this run

# Automatically build the project and run any configured tests for every push
# and submitted pull request. This can help catch issues that only occur on
# certain platforms or Java versions, and provides a first line of defence
# against bad commits.
name: Build project
on:
push:
branches:
- dev
- 'port/**'
- 'workflow/**'
pull_request:
jobs:
build:
strategy:
matrix:
java: [ 21 ]
os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Java ${{ matrix.java }} setup
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: gradle
- name: Make gradlew executable
if: runner.os == 'Linux'
run: chmod +x ./gradlew
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Gradle build
run: ./gradlew build
- name: Capture build artifacts
if: ${{ runner.os == 'Linux' }} # Only upload artifacts built from LTS java on one OS
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/libs/