Replace GH workflow

This commit is contained in:
FlorianMichael 2023-09-22 14:16:08 +02:00
parent cd4b00c803
commit 0568207615
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
2 changed files with 28 additions and 18 deletions

28
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: ViaRewind-Legacy-Support CI
on: [pull_request, push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 8
check-latest: true
- name: Cache Dependencies
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew build

View File

@ -1,18 +0,0 @@
name: Java CI with Maven
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Build with Maven
run: mvn install
- uses: actions/upload-artifact@v3
with:
name: artifact
path: target