diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c7a97aa --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build + +on: [ pull_request, push, workflow_dispatch ] + +jobs: + Build: + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: 17 + - name: Cache + uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + .gradle + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'build.gradle') }} + - name: Build with Gradle + run: | + chmod +x gradlew + ./gradlew build + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: Artifacts + path: ${{ github.workspace }}/build/libs \ No newline at end of file diff --git a/build.gradle b/build.gradle index 46ccc48..b1e5b09 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ dependencies { mappings(libs.yarn) { artifact { classifier = "v2" } } forge(libs.forge) - //modCompileOnly(libs.splasher) + modCompileOnly(libs.splasher) } processResources { @@ -53,22 +53,6 @@ java { jar { from("LICENSE") - - // add some additional metadata to the jar manifest - /* - manifest { - attributes([ - "Specification-Title" : project.mod_id, - "Specification-Vendor" : project.mod_author, - "Specification-Version" : "1", - "Implementation-Title" : project.name, - "Implementation-Version" : version, - "Implementation-Vendor" : project.mod_author, - "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") - ]) - } - - */ } // configure the maven publication