Skip to content

Build and Test on Linux #14

Build and Test on Linux

Build and Test on Linux #14

name: Build and Test on Linux
on:
push:
branches:
- main
pull_request_review:
types: [ submitted ]
jobs:
build_test_linux:
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved')
steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: recursive
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@16bf8bc8fe830fa669c3c9f914d3eb147c629707 # v4
- name: Mark Gradle as Executable
run: chmod +x gradlew
- name: Build with Gradle Wrapper
run: ./gradlew build
- name: Upload CLI Jar
uses: actions/upload-artifact@v4
with:
name: jar-builds
path: build/libs/*.jar
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: linux-builds
path: build/libs/linux/