Skip to content

Merge pull request #194 from Gilly7CE/mcversion-gilly7ce-193-support-… #74

Merge pull request #194 from Gilly7CE/mcversion-gilly7ce-193-support-…

Merge pull request #194 from Gilly7CE/mcversion-gilly7ce-193-support-… #74

Workflow file for this run

# Automatically build the project and run any configured tests for every push
# and submitted pull request. This can help catch issues that only occur on
# certain platforms or Java versions, and provides a first line of defence
# against bad commits.
name: main-build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: setup jdk 17
uses: actions/setup-java@v3
with:
distribution: "adopt"
java-version: 17
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build with gradle
run: ./gradlew build
- uses: actions/upload-artifact@v2
with:
name: Compiled artifacts for ${{ github.sha }}
path: build/libs