minecraft-mod/.github/workflows/build.yml
Adrian Siekierka eab1b6b7a0 Fabric Mod Example History
first commit

update to 0.0.13

update to 48b, new fabric-loader definition

use plugins block for fabric-loom

add .gitignore

update library versions

update maven url

update build.gradle

Update Yarn and Fabric

update build.gradle

update

update build.gradle for 18w50a

require fabric api for the example mod

Add description to example mod (#2)

Bumped version (#4)

update Loom, Fabric

add sourcesJar

important update

Update .gitignore for VSCode support (#6)

use array initializer value as the default for example

Update to 19w02a

Update example to 19w03c and increase the memory for gradle.

Fix gradle.properties

Update example mod to 19w05a

Actually use gradle 4.10.2

Somewhere along the line the wrapper version was updated, but not the jar and the script.

Update to 19w06a and 0.2.0 fabric

use constants for source/target compatibility levels

move properties out of the main buildscript

encoding fix for special characters

add javadoc task and maven-publish plugin

update fabric URL

fix maven publishing

fix indentation

automatically set mod version on export

remove javadoc jar

fix typo

19w12a

Update to fixed fabric + yarn

update to Loader 0.4.0

Update gradle to 4.10.3 (#9)

Update to fabric 0.2.6.121

Update to pre 4

actually update to Loom 0.2.1

Minecraft 1.14, Loom 0.2.2

Update to 1.14.1 and Fabric API 0.3.0

Update Yarn mappings to 1.14.1+build.5

Yarn 1.14.1+build.4 had an issue with Hopper#getWorld being renamed to Hopper#getHopperWorld, which caused the world to crash when ticking hoppers in dev. 1.14.1+build.5 fixed this, but the example mod wasn't updated yet, so anyone following the dev install instructions on the site would run into the issue.

Update to 1.14.2

fix requires -> depends in mod JSON

Update gradle.properties (#15)

version updates

1.14.3

Update API version to fix a bug with crashes.

Sadly this bug snuck into previous versions, this has been fixed.

1.14.4

Fix #18 (#19)

Update loom + dependencies

Update gradle to 5.5.1

Update yarn, loader and api

Update yarn, loader and api (#31)

Co-authored-by: modmuss50 <modmuss50@gmail.com>

1.15

Increase required loader version

1.15.1

1.15.2

Add minVersion to template mixin config (#41)

* Add minVersion to mixin config

* Bump loader dep requriement to >=0.7.4

Update gradle, update deps, modCompile -> modImplementation

Add Eclipse *.launch files to the gitignore (#37)

Update README.md

Update loom, gradle and all other deps

Update Loom

Update Gradle and dependencies

1.16

1.16.1

1.16.2

1.16.3

Update api, loader, loom, gradle

Simply processResources logic & make it compatible with future versions of Gradle (#69)

* Ignore commonly generated Mac OS junk files

This is optional, but it would be a huge quality of life improvement for anyone developing on Mac OS, as the first thing I do when starting a new project is always to add this to the .gitignore. Example: Just from the small changes I've made to the build script alone, I've generated 4 .DS_Store files, which would clutter up this PR if I included them.

* Simply processResources logic & make it compatible with future versions of Gradle

When the processResources task is currently run, it uses deprecated Gradle features. Running "gradle clean build --warning-mode all" should output a message along the lines of "Copying or archiving duplicate paths with the default duplicates strategy has been deprecated. This is scheduled to be removed in Gradle 7.0.". This is due to inlcuding all files twice, as the "from" blocks includes them for the second time (gradle includes these files by default). This PR simply edits the relevant files from the already selected resources directory. This also reduces the amount of repetition in the script.

* Switch to double quotes to match style

D'oh!

Modernize Gradle buildscript (#71)

* Modernize gradle buildscript

* Bump yarn/loader/fabric api versions

* Add GH actions to build example mod

* Update in response to feedback

1.16.4

Fix some IDE's (vsc) not detecting the correct java version to compile for.

Update minecraft, gradle, loader and api.

Update default maven group

Remove jcenter from settings.gradle as jcenter is shutting down.
Closes #78

This should have never been here, sadly not a lot I can do about the past.

Improve description of repositories blocks (#81)

* Update build.gradle

* Implements @liach's suggested changes

* Update build.gradle

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>

* Update build.gradle

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>

* Update build.gradle

* Update build.gradle

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>

Update loom, gradle, yarn, loader and api.

Unify inconsitent identation in build.gradle (#90)

Update dependencies (#92)

Co-authored-by: ByMartrixX <47987888+ByMartrixx@users.noreply.github.com>

Update to 21w19a and Java 16

This commit can be used as an example on how to update your mod to Java 16. You will need to ensure you have Java 16 installed and set as the active version to run this.

Gradle 7 is required along with loom 0.8

1.17-pre1

1.17 stable

Update gradle.properties (#110)

Update Fabric versions link (#111)

Update Minecraft and Gradle.

Update Gradle, Loom, Yarn, Fabric

Update fabric API

Use Logger instead of println (#126)

Update yarn and fabric load/api (#134)

* Update yarn and fabric load/api

To keep up to date with https://fabricmc.net/versions.html?&version=1.17.1

* Set loader to latest stable version

Resolve plugin dependencies from maven central. (#138)

Update to Gradle 7.3 and also build on Java 17

Update to loom 0.10

Update Fabric Loader and API

Small cleanup

1.18-pre2

Revert compatibilityLevel bump

Using JAVA_17 is currently broken with the production server and not necessarily indicated by how Mixin treats this field

1.18

Update deps

1.18.1

Update Fabric Loader to 0.12.10

Update Fabric Loader to 0.12.12

Update fabric latest versions link (#154)

The [old page](https://fabricmc.net/versions.html) is missing links to the online javadocs. It tells users to use the [new page](https://fabricmc.net/develop) instead, so we might as well provide the new one here to begin with.

Migrate to SLF4J (#157)

Update Loom & Gradle (#160)

Update API, yarn, minimum loader version and mixin compat level.

Update gradle.

Update to 1.18.2
Also updates fabric loader.

Update MC dep to disallow 1.18.1 since it's usually incompatible

Update loader, api & yarn

Update loom

1.19

1.19.1

1.19.2

Update Dependencies

Update dependencies (#220)

Add files the JVM may generate under certain conditions to .gitignore (#159)

Update to Gradle 7.6 (#222)

1.19.3

Update to loom 1.1 (#229)

Update to Gradle 8

Update deps

1.19.4
2023-03-20 18:15:04 -05:00

41 lines
1.3 KiB
YAML

# Automatically build the project and run any configured tests for every push
# and submitted pull request. This can help catch issues that only occur on
# certain platforms or Java versions, and provides a first line of defence
# against bad commits.
name: build
on: [pull_request, push]
jobs:
build:
strategy:
matrix:
# Use these Java versions
java: [
17, # Current Java LTS & minimum supported by Minecraft
]
# and run on both Linux and Windows
os: [ubuntu-22.04, windows-2022]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'microsoft'
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/