build: Bump VG and other build deps, use shared workflow for CI

This commit is contained in:
zml committed 2022-07-16 20:45:22 -07:00
1 parent 5e50312a8e
commit 4e16db8c88
8 files changed
+36 -55

No files matched your search

+7 -33
View File
@@ -1,40 +1,14 @@
# 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: License Check
on:
push:
branches-ignore: [ stable-7 ]
branches: "**"
tags-ignore: ["**"]
pull_request:
branches-ignore: [ stable-7 ]
env:
CACHE_REV: "1"
jobs:
check:
# Only run on PRs if the source branch is on someone else's repo
if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
${{ github.workspace}}/buildSrc/.gradle/
${{ github.workspace}}/forge/build/fg_cache
${{ github.workspace}}/.gradle/
key: "${{ runner.os }}-minecraft-${{ env.CACHE_REV }}-${{ hashFiles('**/*.gradle*') }}"
restore-keys: |
${{ runner.os }}-minecraft-${{ env.CACHE_REV }}-
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew -PenableTestPlugins=true -PenableSpongeForge=true checkLicenses
call-check:
uses: SpongePowered/.github/.github/workflows/shared-check-license.yaml@master
with:
extra_gradle_params: "-PenableTestPlugins=true -PenableSpongeForge=true"
secrets: inherit