Skip to content

Merge branch 'main' into 1.19.3 #118

Merge branch 'main' into 1.19.3

Merge branch 'main' into 1.19.3 #118

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
java: [
17,
21,
]
os: [
ubuntu-22.04,
windows-2022
]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: build
uses: gradle/gradle-build-action@v2
with:
arguments: build --warning-mode=all
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
- name: capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Upload artifacts from one job, ignore the rest
uses: actions/upload-artifact@v3
with:
name: dynamic-fps-artifacts
path: build/libs
if-no-files-found: error