Skip to content
This repository was archived by the owner on May 26, 2024. It is now read-only.

Commit 20b5d29

Browse files
author
Johann Bernhardt
committed
Migrated to unified build script
1 parent 311ab89 commit 20b5d29

33 files changed

+844
-568
lines changed

.circleci/config.yml

-65
This file was deleted.

.gitattributes

-17
This file was deleted.
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
directory="run/crash-reports"
2+
if [ -d $directory ]; then
3+
echo "Crash reports detected:"
4+
cat $directory/*
5+
exit 1
6+
else
7+
echo "No crash reports detected"
8+
exit 0
9+
fi

.github/workflows/build-and-test.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Build and test
5+
6+
on:
7+
pull_request:
8+
branches: [ master, main ]
9+
push:
10+
branches: [ master, main ]
11+
12+
jobs:
13+
build-and-test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Set up JDK 8
21+
uses: actions/setup-java@v2
22+
with:
23+
java-version: '8'
24+
distribution: 'adopt'
25+
cache: gradle
26+
27+
- name: Grant execute permission for gradlew
28+
run: chmod +x gradlew
29+
30+
- name: Setup the workspace
31+
run: ./gradlew setupCIWorkspace
32+
33+
- name: Build the mod
34+
run: ./gradlew build
35+
36+
- name: Run server for 1 minute
37+
run: |
38+
mkdir run
39+
echo "eula=true" > run/eula.txt
40+
timeout 60 ./gradlew runServer || true
41+
42+
- name: Test no crashes happend
43+
run: |
44+
chmod +x .github/scripts/test-no-crash-reports.sh
45+
.github/scripts/test-no-crash-reports.sh

.github/workflows/release-tags.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Release tagged build
5+
6+
on:
7+
push:
8+
tags:
9+
- '*'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Set release version
20+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
21+
22+
- name: Set up JDK 8
23+
uses: actions/setup-java@v2
24+
with:
25+
java-version: '8'
26+
distribution: 'adopt'
27+
cache: gradle
28+
29+
- name: Grant execute permission for gradlew
30+
run: chmod +x gradlew
31+
32+
- name: Setup the workspace
33+
run: ./gradlew setupCIWorkspace
34+
35+
- name: Build the mod
36+
run: ./gradlew build
37+
38+
- name: Release under current tag
39+
uses: "marvinpinto/action-automatic-releases@latest"
40+
with:
41+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
42+
automatic_release_tag: "${{ env.RELEASE_VERSION }}"
43+
prerelease: false
44+
title: "${{ env.RELEASE_VERSION }}"
45+
files: build/libs/*.jar

.gitignore

+24-145
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,28 @@
1-
# Windows image file caches
2-
Thumbs.db
3-
ehthumbs.db
4-
5-
# Folder config file
6-
Desktop.ini
7-
8-
# Recycle Bin used on file shares
9-
$RECYCLE.BIN/
10-
11-
# Windows Installer files
12-
*.cab
13-
*.log
14-
*.log.gz
15-
*.msi
16-
*.msm
17-
*.msp
18-
*.json
19-
*.txt
20-
*.zip
21-
22-
# Windows shortcuts
23-
*.lnk
24-
25-
# =========================
26-
# Operating System Files
27-
# =========================
28-
29-
# OSX
30-
# =========================
31-
32-
.DS_Store
33-
.AppleDouble
34-
.LSOverride
35-
36-
# Thumbnails
37-
._*
38-
39-
# Files that might appear in the root of a volume
40-
.DocumentRevisions-V100
41-
.fseventsd
42-
.Spotlight-V100
43-
.TemporaryItems
44-
.Trashes
45-
.VolumeIcon.icns
46-
47-
# Directories potentially created on remote AFP share
48-
.AppleDB
49-
.AppleDesktop
50-
Network Trash Folder
51-
Temporary Items
52-
.apdisk
53-
54-
# Created by https://www.gitignore.io/api/eclipse
55-
56-
### Eclipse ###
57-
58-
.metadata
59-
tmp/
60-
*.tmp
61-
*.bak
62-
*.swp
63-
*~.nib
64-
local.properties
65-
.settings/
66-
.loadpath
67-
68-
# Eclipse Core
69-
.project
70-
71-
# External tool builders
72-
.externalToolBuilders/
73-
74-
# Locally stored "Eclipse launch configurations"
75-
*.launch
76-
77-
# PyDev specific (Python IDE for Eclipse)
78-
*.pydevproject
79-
80-
# CDT-specific (C/C++ Development Tooling)
81-
.cproject
82-
83-
# JDT-specific (Eclipse Java Development Tools)
1+
.gradle
2+
.settings
3+
/.idea/
4+
/run/
5+
/build/
6+
/eclipse/
847
.classpath
85-
86-
# Java annotation processor (APT)
87-
.factorypath
88-
89-
# PDT-specific (PHP Development Tools)
90-
.buildpath
91-
92-
# sbteclipse plugin
93-
.target
94-
95-
# TeXlipse plugin
96-
.texlipse
97-
98-
# STS (Spring Tool Suite)
99-
.springBeans
100-
101-
# IDEA
102-
.idea/
8+
.project
9+
/bin/
10+
/config/
11+
/crash-reports/
12+
/logs/
13+
options.txt
14+
/saves/
15+
usernamecache.json
16+
banned-ips.json
17+
banned-players.json
18+
eula.txt
19+
ops.json
20+
server.properties
21+
servers.dat
22+
usercache.json
23+
whitelist.json
24+
/out/
10325
*.iml
10426
*.ipr
10527
*.iws
106-
107-
# Other
108-
backups
109-
bin
110-
blueprints
111-
build
112-
config
113-
crash-reports
114-
gradle
115-
local
116-
logs
117-
modpack
118-
mods
119-
resourcepacks
120-
saves
121-
screenshots
122-
scripts
123-
.circleci
124-
.gradle
125-
.okhttpcache
126-
/src/Java/gtPlusPlus/preloader/asm/visitors/ob/sprinkler/Visitor_Field_Sprinkler.java
127-
/src/Java/gtPlusPlus/preloader/asm/visitors/ob/sprinkler/Visitor_Method_Sprinkler_GetInventory.java
128-
/src/Java/gtPlusPlus/preloader/asm/visitors/ob/sprinkler/Visitor_Method_Sprinkler_UpdateEntity.java
129-
/src/Java/gtPlusPlus/xmod/galacticraft/asm/EntityAutoRocket_ASM.java
130-
/src/Java/gtPlusPlus/xmod/galacticraft/asm/FluidUtil_ASM.java
131-
/src/Java/gtPlusPlus/xmod/galacticraft/asm/TileEntityFuelLoader_ASM.java
132-
/src/Java/gtPlusPlus/xmod/ob/TileEntitySprinkler_ASM.java
133-
/src/Java/gtPlusPlus/xmod/thermalfoundation/asm/OreDictionaryArbiter_ASM.java
134-
/GeneratedIcons
135-
/unused libs
136-
/world
137-
/server.properties
138-
/servers.dat
139-
/GregTech.cfg
140-
/GregTech.lang
141-
/GTPP.dat
142-
/PlayerCache.dat
143-
wip
144-
*.bat
145-
GT++.ipr
146-
GT++.iws
147-
148-
149-
out
28+
src/main/resources/mixins.*.json

.gradle/2.0/taskArtifacts/cache.properties

-1
This file was deleted.
-17 Bytes
Binary file not shown.
-509 KB
Binary file not shown.
-4.22 MB
Binary file not shown.
-18.4 KB
Binary file not shown.
-28.5 KB
Binary file not shown.

.project

-23
This file was deleted.

Recommended.txt

-1
This file was deleted.

SupporterList.txt

-2
This file was deleted.

_config.yml

-1
This file was deleted.

addon.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
compileJava {
2+
options.encoding = "UTF-8"
3+
}

0 commit comments

Comments
 (0)