Skip to content

arch-loom -> unimined #247

arch-loom -> unimined

arch-loom -> unimined #247

Workflow file for this run

name: Gradle build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get cache key
id: cache_key
run: echo "gradle_key=gradle-`cat versions/mainProject`" >> $GITHUB_OUTPUT
- name: Cache Gradle stuff
uses: actions/cache@v3
with:
key: ${{ steps.cache_key.outputs.gradle_key }}-${{ hashFiles('*.gradle.kts', 'gradle.properties', 'gradle/**') }}
restore-keys: ${{ steps.cache_key.outputs.gradle_key }}-
path: |
~/.gradle/caches
~/.gradle/wrapper
.gradle/loom-cache
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build with Gradle
run: ./gradlew build
- name: Capture build artifacts
uses: actions/upload-artifact@v2
with:
name: Artifact
path: versions/*/build/libs/