mirror of
https://github.com/barkeser2002/JMT-MCMT.git
synced 2026-09-26 02:38:40 +03:00
Also can now return null chunks in the event of a timeout Hopefully make caching more friendly Gradle does happily cache anything so this should be fine
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
# This workflow will build a Java project with Gradle
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
|
|
|
name: Java CI with Gradle
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-gradle-
|
|
- name: Grant execute permission buildscripts
|
|
run: |
|
|
chmod +x ./etc/buildscripts/1152build |
|
|
chmod +x ./etc/buildscripts/1165build |
|
|
chmod +x ./etc/buildscripts/upload |
|
|
chmod +x ./gradlew
|
|
- name: Build 1.15.2
|
|
run: ./etc/buildscripts/1152build
|
|
- name: Cleanup
|
|
run: git reset --hard HEAD
|
|
- name: Build 1.16.5
|
|
run: ./etc/buildscripts/1165build
|
|
- name: Cleanup
|
|
run: git reset --hard HEAD
|
|
- name: Publish to Discord
|
|
env: # Setup Webhook Thing
|
|
DEVEL_WEBHOOK_URL: ${{ secrets.DEVEL_WEBHOOK_URL }}
|
|
run: ./etc/buildscripts/upload
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|