diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index daceeffe..17c99eba 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,6 +1,6 @@ name: Java CI with Gradle -on: [ pull_request, push ] +on: [pull_request, push] jobs: build: @@ -19,8 +19,13 @@ jobs: check-latest: true - name: Build with Gradle run: ./gradlew build - - name: Upload Build Artifacts + - name: Upload Build Artifacts - Fabric uses: actions/upload-artifact@v4 with: - name: 'Sodium Extra Artifacts' - path: build/libs + name: 'Sodium Extra Fabric Artifacts' + path: fabric/build/libs + - name: Upload Build Artifacts - NeoForge + uses: actions/upload-artifact@v4 + with: + name: 'Sodium Extra NeoForge Artifacts' + path: neoforge/build/libs diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 084fae40..d4c6d8de 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,7 +6,7 @@ on: - published jobs: - publish: + build: if: github.repository_owner == 'FlashyReese' runs-on: self-hosted steps: @@ -25,8 +25,19 @@ jobs: env: MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} - - name: Publish to Modrinth & CurseForge - uses: Kir-Antipov/mc-publish@v3.3 + publish: + needs: build + runs-on: ubuntu-22.04 + strategy: + matrix: + include: + - platform: fabric + name: Fabric + - platform: neoforge + name: NeoForge + steps: + - name: Publish ${{ matrix.name }} to Modrinth, CurseForge & GitHub + uses: Kir-Antipov/mc-publish@v3.3.0 with: modrinth-id: PtjYWJkn modrinth-token: ${{ secrets.MODRINTH_TOKEN }} @@ -36,11 +47,21 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} + name: '[${{ matrix.name }}] ${{ github.event.release.name }}' + version: '${{ github.event.release.tag_name }}+${{ matrix.platform }}' version-type: release - loaders: fabric + + loaders: ${{ matrix.platform }} + dependencies: | sodium | depends | * fabric-api | depends | * reeses-sodium-options | recommends | * irisshaders | recommends | * iris | recommends | * + + files: | + ${{ matrix.platform }}/build/libs/!(*-@(dev|sources|javadoc|dev-shadow)).jar + ${{ matrix.platform }}/build/libs/*-@(dev|sources|javadoc|dev-shadow).jar + + version-resolver: latest \ No newline at end of file diff --git a/.github/workflows/self-hosted.yml b/.github/workflows/self-hosted.yml index a05807ca..98cb6be9 100644 --- a/.github/workflows/self-hosted.yml +++ b/.github/workflows/self-hosted.yml @@ -1,6 +1,6 @@ name: Self-Hosted runner CI with Gradle -on: [ push ] +on: [push] jobs: selfhost-build: @@ -23,8 +23,13 @@ jobs: env: MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} - - name: Upload Auild Artifacts + - name: Upload Build Artifacts - Fabric uses: actions/upload-artifact@v4 with: - name: 'Sodium Extra Artifacts' - path: build/libs + name: 'Sodium Extra Fabric Artifacts' + path: fabric/build/libs + - name: Upload Build Artifacts - NeoForge + uses: actions/upload-artifact@v4 + with: + name: 'Sodium Extra NeoForge Artifacts' + path: neoforge/build/libs diff --git a/CaffeineConfig.java b/CaffeineConfig.java deleted file mode 100644 index 362cc814..00000000 --- a/CaffeineConfig.java +++ /dev/null @@ -1,358 +0,0 @@ -package net.caffeinemc.caffeineconfig; - -import it.unimi.dsi.fastutil.objects.ObjectLinkedOpenHashSet; - -import java.io.*; -import java.nio.file.Files; -import java.nio.file.Path; -import java.util.*; - -import org.apache.logging.log4j.LogManager; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - *

A mixin configuration object. Holds the {@link Option options} defined and handles overrides.

- * - * @see CaffeineConfig.Builder - */ -public final class CaffeineConfig { - private final Map options = new HashMap<>(); - private final Set