aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-06 14:55:43 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-06 14:55:43 +0200
commit462d5976f3654f40229ff61391e7e55d0819d82d (patch)
tree9b3804046d9b3b2c4f11f946a7e2fffc53eba249 /.github/workflows
parentf4c6691b628cca146ddb44e77f54cb46387aa15d (diff)
parent6f2e90260fe1b46d25b4f5c86564badfef582d62 (diff)
downloadOneConfig-462d5976f3654f40229ff61391e7e55d0819d82d.tar.gz
OneConfig-462d5976f3654f40229ff61391e7e55d0819d82d.tar.bz2
OneConfig-462d5976f3654f40229ff61391e7e55d0819d82d.zip
Merge branch 'master' of github.com:Polyfrost/OneConfig
Diffstat (limited to '.github/workflows')
-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..7f7499d
--- /dev/null
+++ b/.github/workflows/checks.yml
@@ -0,0 +1,60 @@
+# Build Workflow
+
+name: Build
+
+on:
+ - pull_request
+ - workflow_dispatch
+ - push
+
+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: Set up JDK 17
+ uses: actions/setup-java@v2
+ with:
+ java-version: 17
+ distribution: temurin
+ cache: gradle
+
+ - name: Cache Loom
+ id: cache
+ uses: actions/cache@v2
+ with:
+ path: |
+ ./.gradle/loom-cache
+ key: ${{ runner.os }}-loom-cache-jdk17-${{ hashFiles('./build.gradle.kts') }}
+
+ - name: Chmod Gradle
+ run: chmod +x ./gradlew
+
+ - name: Setup Gradle
+ if: steps.cache.outputs.cache-hit != 'true'
+ run: ./gradlew setupGradle --no-daemon
+
+ - name: Build
+ run: ./gradlew build --no-daemon
+
+ - name: Upload Build Artifacts
+ uses: actions/upload-artifact@v2
+ with:
+ name: ${{ matrix.version }} Artifacts
+ path: versions/${{ matrix.version }}/build/libs/