Skip to content

Commit

Permalink
Bring up to speed with the OneConfig example mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Deftu committed Jan 2, 2025
1 parent 90729e3 commit 9537835
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 29 deletions.
53 changes: 26 additions & 27 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,47 @@
name: build
# Build Workflow

name: Build with Gradle

on:
push:
branches: '*'
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
pull_request:
branches: '*'
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
workflow_dispatch:
push:

concurrency:
# Maximum of one running workflow per pull request source branch
# or branch and run number combination (cancels old run if action is rerun)
group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }}
cancel-in-progress: true

jobs:
build:
name: "Build"
runs-on: "ubuntu-latest"
name: Build

steps:
- uses: actions/checkout@v2
runs-on: ubuntu-latest

- uses: gradle/wrapper-validation-action@v1
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 10

- uses: actions/setup-java@v2
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
java-version: 21
distribution: temurin

- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-v2-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
**/loom-cache
**/prebundled-jars
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-v2-
- run: chmod +x ./gradlew
- run: ./gradlew --no-daemon build
${{ runner.os }}-gradle-
- name: Chmod Gradle
run: chmod +x ./gradlew

- name: Build
run: ./gradlew build --no-daemon
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ plugins {

toolkitLoomHelper {
useOneConfig {
version = "1.0.0-alpha.47"
loaderVersion = "1.1.0-alpha.34"
version = "1.0.0-alpha.49"
loaderVersion = "1.1.0-alpha.35"

usePolyMixin = true
polyMixinVersion = "0.8.4+build.2"
Expand Down
2 changes: 2 additions & 0 deletions root.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ preprocess {
"1.8.9-forge"(10809, "srg") {
"1.8.9-fabric"(10809, "yarn")
}

strictExtraMappings.set(true)
}

0 comments on commit 9537835

Please sign in to comment.