Skip to content

Commit d1f1a26

Browse files
committed
Initial release
Collapse history
0 parents  commit d1f1a26

869 files changed

Lines changed: 66790 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Java sources
2+
*.java text diff=java
3+
*.kt text diff=kotlin
4+
*.groovy text diff=java
5+
*.scala text diff=java
6+
*.gradle text diff=java
7+
*.gradle.kts text diff=kotlin
8+
9+
# Rust Sources
10+
*.rs text diff=rust
11+
*.toml text diff=toml
12+
Cargo.lock text
13+
14+
# These files are text and should be normalized (Convert crlf => lf)
15+
*.css text diff=css
16+
*.scss text diff=css
17+
*.sass text
18+
*.df text
19+
*.htm text diff=html
20+
*.html text diff=html
21+
*.js text
22+
*.mjs text
23+
*.cjs text
24+
*.jsp text
25+
*.jspf text
26+
*.jspx text
27+
*.properties text
28+
*.tld text
29+
*.tag text
30+
*.tagx text
31+
*.xml text
32+
33+
# These files are binary and should be left untouched
34+
# (binary is a macro for -text -diff)
35+
*.class binary
36+
*.dll binary
37+
*.ear binary
38+
*.jar binary
39+
*.so binary
40+
*.dylib binary
41+
*.war binary
42+
*.jks binary
43+
*.ttf binary
44+
45+
# Common build-tool wrapper scripts ('.cmd' versions are handled by 'Common.gitattributes')
46+
mvnw text eol=lf
47+
gradlew text eol=lf
48+
49+
# These are explicitly windows files and should use crlf
50+
*.bat text eol=crlf

.github/workflows/build-rust.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build Rust Natives
2+
on:
3+
push:
4+
paths:
5+
- 'common/src/main/rust/**'
6+
- '.github/workflows/build-rust.yml'
7+
workflow_dispatch:
8+
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Java
24+
uses: actions/setup-java@v4
25+
with:
26+
distribution: 'temurin'
27+
java-version: 21
28+
cache: gradle
29+
30+
- name: Setup Gradle
31+
uses: gradle/actions/setup-gradle@v3
32+
33+
- name: Cache cargo
34+
uses: actions/cache@v4
35+
with:
36+
path: ${{ github.workspace }}/common/build/cargo
37+
key: ${{ runner.os }}-node-${{ hashFiles('common/src/main/rust/**/Cargo.lock') }}
38+
39+
- name: Run Gradle Task
40+
run: ./gradlew common:buildImage common:buildRustNatives
41+
42+
- name: Take ownership of the workspace
43+
run: sudo chown -R $USER:$USER .
44+
45+
- name: Commit and Push Changes
46+
run: |
47+
git config --global user.name 'github-actions[bot]'
48+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
49+
git add .
50+
git commit -m "Automated build rust natives" || echo "No changes to commit"
51+
git push

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: build
2+
on:
3+
push:
4+
paths:
5+
- 'common/src/main/java/**'
6+
- 'fabric/src/main/java/**'
7+
- 'neoforge/src/main/java/**'
8+
- '.github/workflows/build.yml'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout sources
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Java
18+
uses: actions/setup-java@v4
19+
with:
20+
distribution: 'temurin'
21+
java-version: 21
22+
cache: gradle
23+
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v4
26+
27+
- name: Make Gradle Wrapper Executable
28+
run: chmod +x ./gradlew
29+
30+
- name: Execute Gradle build
31+
run: ./gradlew build

.github/workflows/publish-wiki.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish wiki
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
paths:
6+
- 'wiki/**'
7+
- '.github/workflows/publish-wiki.yml'
8+
9+
concurrency:
10+
group: publish-wiki
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: write
15+
16+
jobs:
17+
publish-wiki:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: Andrew-Chen-Wang/github-wiki-action@v4

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
on: [workflow_dispatch] # Manual trigger
3+
4+
permissions:
5+
contents: write
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
container:
11+
image: mcr.microsoft.com/openjdk/jdk:21-ubuntu
12+
options: --user root
13+
steps:
14+
- name: Checkout sources
15+
uses: actions/checkout@v4
16+
- name: Setup Java
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: 'temurin'
20+
java-version: 21
21+
cache: gradle
22+
- name: Setup Gradle
23+
uses: gradle/actions/setup-gradle@v4
24+
- name: Make Gradle Wrapper Executable
25+
run: chmod +x ./gradlew
26+
- name: Execute Gradle build
27+
run: ./gradlew build
28+
- name: Publish mods
29+
run: ./gradlew publishMods
30+
env:
31+
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}

.gitignore

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
# User-specific stuff
2+
.idea/
3+
4+
*.iml
5+
*.ipr
6+
*.iws
7+
8+
# Rust
9+
/common/src/main/rust/*/target/
10+
/common/src/main/rust/*/flamegraph.svg
11+
12+
# C# - Sharp
13+
/common/src/main/csharp/*/bin/
14+
/common/src/main/csharp/*/obj/
15+
/common/src/main/csharp/*/libsable_bepu/bin/
16+
/common/src/main/csharp/*/libsable_bepu/obj/
17+
18+
# IntelliJ
19+
out/
20+
# mpeltonen/sbt-idea plugin
21+
.idea_modules/
22+
23+
# JIRA plugin
24+
atlassian-ide-plugin.xml
25+
26+
# Compiled class file
27+
*.class
28+
29+
# Log file
30+
*.log
31+
32+
# BlueJ files
33+
*.ctxt
34+
35+
# Package Files #
36+
*.jar
37+
*.war
38+
*.nar
39+
*.ear
40+
*.zip
41+
*.tar.gz
42+
*.rar
43+
44+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
45+
hs_err_pid*
46+
47+
*~
48+
49+
# temporary files which can be created if a process still has a handle open of a deleted file
50+
.fuse_hidden*
51+
52+
# KDE directory preferences
53+
.directory
54+
55+
# Linux trash folder which might appear on any partition or disk
56+
.Trash-*
57+
58+
# .nfs files are created when an open file is removed but is still being accessed
59+
.nfs*
60+
61+
# General
62+
.DS_Store
63+
.AppleDouble
64+
.LSOverride
65+
66+
# Icon must end with two \r
67+
Icon
68+
69+
# Thumbnails
70+
._*
71+
72+
# Files that might appear in the root of a volume
73+
.DocumentRevisions-V100
74+
.fseventsd
75+
.Spotlight-V100
76+
.TemporaryItems
77+
.Trashes
78+
.VolumeIcon.icns
79+
.com.apple.timemachine.donotpresent
80+
81+
# Directories potentially created on remote AFP share
82+
.AppleDB
83+
.AppleDesktop
84+
Network Trash Folder
85+
Temporary Items
86+
.apdisk
87+
88+
# Windows thumbnail cache files
89+
Thumbs.db
90+
Thumbs.db:encryptable
91+
ehthumbs.db
92+
ehthumbs_vista.db
93+
94+
# Dump file
95+
*.stackdump
96+
97+
# Folder config file
98+
[Dd]esktop.ini
99+
100+
# Recycle Bin used on file shares
101+
$RECYCLE.BIN/
102+
103+
# Windows Installer files
104+
*.cab
105+
*.msi
106+
*.msix
107+
*.msm
108+
*.msp
109+
110+
# Windows shortcuts
111+
*.lnk
112+
113+
.gradle
114+
build/
115+
116+
# Ignore Gradle GUI config
117+
gradle-app.setting
118+
119+
# Cache of project
120+
.gradletasknamecache
121+
122+
**/build/
123+
124+
# Common working directory
125+
run/
126+
runs/
127+
128+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
129+
!gradle-wrapper.jar
130+
131+
/.profileconfig.json
132+
133+
# Checkstyle
134+
.checkstyle/
135+
136+
# MacOS command line tools
137+
macos/*.dmg
138+
139+
**/.intentionally-empty-file.o

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "common/src/main/csharp/LibSableBepu/bepuphysics2"]
2+
path = common/src/main/csharp/LibSableBepu/bepuphysics2
3+
url = https://github.com/bepu/bepuphysics2.git

.idea/icon.png

3.12 KB
Loading

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.jenkins/Jenkinsfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/env groovy
2+
3+
pipeline {
4+
agent any
5+
tools {
6+
jdk "jdk-21"
7+
}
8+
environment {
9+
CI = 'true'
10+
}
11+
stages {
12+
stage('Clean') {
13+
steps {
14+
echo 'Cleaning Project'
15+
sh 'chmod +x gradlew'
16+
sh './gradlew clean'
17+
}
18+
}
19+
stage('Build') {
20+
steps {
21+
echo 'Building'
22+
sh './gradlew build'
23+
}
24+
}
25+
stage('Publish') {
26+
steps {
27+
echo 'Deploying to Maven'
28+
withCredentials([
29+
usernamePassword(credentialsId: 'publishing-user-credentials', usernameVariable: 'local_maven_user', passwordVariable: 'local_maven_token')
30+
]) {
31+
sh './gradlew publish'
32+
}
33+
}
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)