From 9a0694ac2621a4870a178014d8ea3880d11fc4a1 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:26:20 +0200 Subject: Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 7ef334e..169e94f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ # OneConfig -oneconfig (real) - -Coming Soon :tm: +I was told to change this -- cgit From 3be3ff0ef97169460bb6745ee281ff9414aa5c8b Mon Sep 17 00:00:00 2001 From: Ethan Date: Sun, 5 Jun 2022 12:36:02 -0400 Subject: Create checks.yml (#37) --- .github/workflows/checks.yml | 60 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/checks.yml 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/ -- cgit From f8a42fe4da1f51929a642e9a04df2f1a2527f44e Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:43:01 +0200 Subject: Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 169e94f..21aacf6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ # OneConfig -I was told to change this +OneConfig is a next generation config library currently in development for all Minecraft mods. + +For a guide of how to use OneConfig please see our documentation at https://docs.polyfrost.cc + +![image](https://user-images.githubusercontent.com/67508414/172061081-7a32a139-d5c6-4f5a-907a-5af66deb799f.png) + -- cgit From 37cf0a7d5d50a00a5d4990e0397f1469f6962f66 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:44:16 +0200 Subject: Update checks.yml --- .github/workflows/checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 9ada4dd..ca9acff 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -2,7 +2,7 @@ name: Build -on: [push, pull_request, workflow_dispatch] +on: [pull_request, workflow_dispatch] concurrency: group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }} -- cgit From 8b368ebb62ef48e14a69f149ccae25910ccb22ac Mon Sep 17 00:00:00 2001 From: Ethan Date: Sun, 5 Jun 2022 12:57:37 -0400 Subject: fix the issue templates (#39) * make the issue templates actually work pt 1 * make it work * Update bug_report.yml * Update bug_report.yml * fix --- .github/ISSUE_TEMPLATE/bug_report.yml | 10 +--------- .github/ISSUE_TEMPLATE/feature_request.yml | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index c5be7ab..30af2fe 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -4,7 +4,7 @@ labels: "bug" body: - type: markdown attributes: - value: Before raising an issue, please search for existing issues to avoid creating duplicates. For questions and support please use [Discord](https://polyfrost.cc/discord). + value: Before raising an issue, please search for existing issues to avoid creating duplicates. For questions, please use [Discord](https://polyfrost.cc/chat). - type: textarea id: bug-description attributes: @@ -12,9 +12,6 @@ body: description: Summarize the bug encountered concisely validations: required: true -- type: textarea - id: version-data - description: The version data e.g: Minecraft 2.10.2, OneConfig v0.1-alpha, Windows 12, etc. - type: textarea id: steps-to-reproduce attributes: @@ -27,11 +24,6 @@ body: attributes: label: Expected behavior description: Describe what you should see instead -- type: textarea - id: example-repository - attributes: - label: Example repository - description: If possible, please create an [minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug and link it here in the bug report - type: textarea id: anything-else attributes: diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index b4ed087..4b15111 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -1,5 +1,20 @@ --- name: Feature request -about: Suggest an idea for OneConfig +about: Suggest an idea for this OneConfig +title: '' +labels: '' +assignees: '' --- + +## Is your feature request related to a problem? Please describe + + +## Describe the behaviour you'd like + + +## Describe alternatives you've considered + + +## Additional context + -- cgit From d4bdebd64140649717c1bfbdf882dcc5aeeba066 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Mon, 6 Jun 2022 11:26:07 +0200 Subject: Optimize workflow --- .github/workflows/checks.yml | 73 +++++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 41 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index ca9acff..ed86d21 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -2,7 +2,10 @@ name: Build -on: [pull_request, workflow_dispatch] +on: + - pull_request + - workflow_dispatch + - push concurrency: group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }} @@ -15,46 +18,34 @@ jobs: strategy: matrix: version: - ["1.8.9-forge"] + - 1.8.9-forge - runs-on: "ubuntu-latest" + 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/ + - 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: "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/ -- cgit From 4ce873a7f2757f6619dc555a279220884aa13bfb Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Mon, 6 Jun 2022 11:32:53 +0200 Subject: Update checks.yml --- .github/workflows/checks.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index ed86d21..af924b3 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -39,10 +39,11 @@ jobs: run: chmod +x ./gradlew - name: "Setup Gradle" - run: ./gradlew setupGradle + if: hashFiles('.gradle/loom-cache/SETUP') != '' + run: ./gradlew setupGradle --no-daemon - name: "Build" - run: ./gradlew build + run: ./gradlew build --no-daemon - name: "Upload Build Artifacts" uses: actions/upload-artifact@v2 -- cgit From e19803aa912fd8d9a0a12e36bdffd814b38716bc Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Mon, 6 Jun 2022 11:37:16 +0200 Subject: Update checks.yml --- .github/workflows/checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index af924b3..a249384 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -39,7 +39,7 @@ jobs: run: chmod +x ./gradlew - name: "Setup Gradle" - if: hashFiles('.gradle/loom-cache/SETUP') != '' + if: hashFiles('.gradle/loom-cache/SETUP') == '' run: ./gradlew setupGradle --no-daemon - name: "Build" -- cgit From e2edd13aeb9e22fa3badf360736858c13a1109e9 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Mon, 6 Jun 2022 12:12:52 +0200 Subject: Update checks.yml --- .github/workflows/checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index a249384..efb9e0c 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -20,7 +20,7 @@ jobs: version: - 1.8.9-forge - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: Checkout -- cgit From 87c99b81ce3480941705743302d7c47ddee6dc37 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Mon, 6 Jun 2022 13:19:37 +0200 Subject: cache loom --- .github/workflows/checks.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index efb9e0c..3437ddd 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -13,14 +13,14 @@ concurrency: jobs: build: - name: "Build" + name: Build strategy: matrix: version: - 1.8.9-forge - runs-on: self-hosted + runs-on: ubuntu-latest steps: - name: Checkout @@ -34,6 +34,13 @@ jobs: java-version: 17 distribution: temurin cache: gradle + + - name: "Cache Loom" + uses: actions/cache@v2 + with: + path: | + ./gradle/loom-cache + key: ${{ runner.os }}-loom-cache-oneconfig-jdk17-${{ hashFiles('./build.gradle.kts') }} - name: "Chmod Gradle" run: chmod +x ./gradlew -- cgit From 6f2e90260fe1b46d25b4f5c86564badfef582d62 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Mon, 6 Jun 2022 13:27:24 +0200 Subject: Fix loom cache --- .github/workflows/checks.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 3437ddd..7f7499d 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -35,24 +35,25 @@ jobs: distribution: temurin cache: gradle - - name: "Cache Loom" + - name: Cache Loom + id: cache uses: actions/cache@v2 with: path: | - ./gradle/loom-cache - key: ${{ runner.os }}-loom-cache-oneconfig-jdk17-${{ hashFiles('./build.gradle.kts') }} + ./.gradle/loom-cache + key: ${{ runner.os }}-loom-cache-jdk17-${{ hashFiles('./build.gradle.kts') }} - - name: "Chmod Gradle" + - name: Chmod Gradle run: chmod +x ./gradlew - - name: "Setup Gradle" - if: hashFiles('.gradle/loom-cache/SETUP') == '' + - name: Setup Gradle + if: steps.cache.outputs.cache-hit != 'true' run: ./gradlew setupGradle --no-daemon - - name: "Build" + - name: Build run: ./gradlew build --no-daemon - - name: "Upload Build Artifacts" + - name: Upload Build Artifacts uses: actions/upload-artifact@v2 with: name: ${{ matrix.version }} Artifacts -- cgit