aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorEthan <git@ethanlibs.co>2022-06-05 12:36:02 -0400
committerGitHub <noreply@github.com>2022-06-05 18:36:02 +0200
commit3be3ff0ef97169460bb6745ee281ff9414aa5c8b (patch)
treeb2e663ac700edc37a6c698cf087fdf2dd0bf1aa2 /.github
parent9a0694ac2621a4870a178014d8ea3880d11fc4a1 (diff)
downloadOneConfig-3be3ff0ef97169460bb6745ee281ff9414aa5c8b.tar.gz
OneConfig-3be3ff0ef97169460bb6745ee281ff9414aa5c8b.tar.bz2
OneConfig-3be3ff0ef97169460bb6745ee281ff9414aa5c8b.zip
Create checks.yml (#37)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/checks.yml60
1 files changed, 60 insertions, 0 deletions
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
new file mode 100644
index 0000000..9ada4dd
--- /dev/null
+++ b/.github/workflows/checks.yml
@@ -0,0 +1,60 @@
+# Build Workflow
+
+name: Build
+
+on: [push, pull_request, workflow_dispatch]
+
+concurrency:
+ group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }}
+ cancel-in-progress: true
+
+jobs:
+ build:
+ name: "Build"
+
+ strategy:
+ matrix:
+ version:
+ ["1.8.9-forge"]
+
+ runs-on: "ubuntu-latest"
+
+ steps:
+ - name: "Checkout"
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: "Gradle Wrapper Validation"
+ uses: gradle/wrapper-validation-action@v1
+
+ - name: "Setup Java"
+ uses: actions/setup-java@v2
+ with:
+ distribution: "temurin"
+ java-version: "17"
+
+ - name: "Cache Gradle"
+ uses: actions/cache@v2
+ with:
+ path: |
+ ~/.gradle/caches
+ ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-v1-jdk17-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
+
+ - name: "Chmod Gradle"
+ run: chmod +x ./gradlew
+
+
+ - name: "Setup Gradle"
+ run: ./gradlew setupGradle
+
+
+ - name: "Build"
+ run: ./gradlew build
+
+ - name: "Upload Build Artifacts"
+ uses: actions/upload-artifact@v2
+ with:
+ name: ${{ matrix.version }} Artifacts
+ path: versions/${{ matrix.version }}/build/libs/