Skip to content

Update github workflows #175

Update github workflows

Update github workflows #175

Workflow file for this run

# Builds and tests the project
name: Build
on: [pull_request, push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: ✨ Checkout repository
uses: actions/checkout@v4
- name: 🛂 Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: 🏗 Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: 📷 Begin Gradle cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: 🔨 Build artifacts
run: gradle build
- name: 📦 Upload artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: '**/build/libs'
- name: 🧨 Cleanup Gradle cache
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties