Lilase/.github/workflows/build.yml
2023-03-09 17:06:39 +00:00

32 lines
934 B
YAML

name: build-ci
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Java setup
uses: actions/setup-java@v1
with:
java-version: 18
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build
run: chmod +x gradlew && ./gradlew build --stacktrace --info
- name: List working directory contents
run: ls -R
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: versions/1.8.9-forge/build/libs/Lilase.jar
# ./gradlew setupDecompWorkspace