Files
JMT-MCMT/.github/workflows/build-dev.yml
jediminer543 26c0837be5 Rework chunk handling; can now multi-access chunks
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
2021-09-05 12:47:54 +01:00

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