Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerS1066 committed Jun 15, 2024
1 parent 85e4e42 commit 907c565
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 166 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Java CI

on:
workflow_dispatch:
push:
pull_request:
schedule:
- cron: '22 13 * * 6'

jobs:
# Build Movecraft
build:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Checkout Movecraft
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build with Gradle
run: ./gradlew build

- name: Stage jar
run: mkdir staging && cp build/libs/Movecraft.jar staging && mv staging/Movecraft.jar staging/Movecraft_$GITHUB_SHA.jar
- name: Upload jar
uses: actions/upload-artifact@v4
with:
name: Movecraft_Dev-Build
path: staging/Movecraft_*.jar
142 changes: 0 additions & 142 deletions .github/workflows/maven.yml

This file was deleted.

13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,10 @@ Please check the [Wiki](https://github.com/APDevTeam/Movecraft/wiki) and [FAQ](h
[Discord](http://bit.ly/JoinAP-Dev)

## Development Environment
Movecraft uses multiple versions of the Spigot server software for legacy support. As such, you need to run [BuildTools](https://www.spigotmc.org/wiki/buildtools/) for several versions before building the plugin. It doesn't matter where you do this, but inside the Movecraft directory is probably a bad place. We recommend building Spigot 1.18.2 with Java 17, and 1.20.6 with Java 21.

```
java -jar BuildTools.jar --rev 1.18.2 --remapped
java -jar BuildTools.jar --rev 1.20.6 --remapped
```

Once you have compiled CraftBukkit, it should continue to exist in your local maven repository, and thus you should need to compile each version at most one time. Once complete, run the following to build Movecraft through `maven`.
Building Movecraft is as easy as downloading the source code and executing the following command:
```
mvn -T 1C clean install
./gradlew build
```
Compiled jars can be found in the `/target` directory.
Compiled jars can be found in the `/build/libs` directory.

#### Movecraft is released under the GNU General Public License V3.
14 changes: 0 additions & 14 deletions modules/datapack/src/main/resources/movecraft-data-zip.xml

This file was deleted.

0 comments on commit 907c565

Please sign in to comment.