Skip to content

Merge branch 'WiIIiam278:master' into master #9

Merge branch 'WiIIiam278:master' into master

Merge branch 'WiIIiam278:master' into master #9

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# 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 ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
# Use these Java versions
java: [
16, # Current Java LTS & minimum supported by Minecraft
]
# and run on both Linux and Windows
# os: [ubuntu-20.04, windows-2022]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: clean
run: ./gradlew clean
- name: build
run: ./gradlew build
- name: capture build artifacts
uses: actions/upload-artifact@v3.0.0
with:
path: target/**/*.jar