Revert "Attempt to merge CI changes"

This reverts commit 1a1eaca280.
This commit is contained in:
James Seibel
2026-05-02 11:45:29 -05:00
parent 1a1eaca280
commit ab6a5dad2b
3 changed files with 24 additions and 48 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ run/
out/ out/
*.iml *.iml
.gradle/ .gradle/
.gradle-*/ .gradle-cache/
output/ output/
bin/ bin/
libs/ libs/
+22 -46
View File
@@ -15,9 +15,14 @@ variables:
# These can be extended so code is a bit less duplicated # These can be extended so code is a bit less duplicated
.build_java: .build_java:
before_script: #image: eclipse-temurin:17
- GRADLE_USER_HOME="$(pwd)/.gradle" cache:
- export GRADLE_USER_HOME key: "gradleCache_$CI_JOB_NAME_SLUG"
policy: pull-push
paths:
- .gradle
- cache/
allow_failure: true
retry: retry:
max: 2 max: 2
when: when:
@@ -27,8 +32,6 @@ variables:
build: build:
stage: build stage: build
needs: []
dependencies: []
parallel: parallel:
matrix: matrix:
- MC_VER: [ - MC_VER: [
@@ -42,7 +45,8 @@ build:
] ]
script: script:
# this both runs the unit tests and assembles the code # this both runs the unit tests and assembles the code
- gradle build -PmcVer="${MC_VER}" -PinfoGitCommit="${CI_COMMIT_SHA}" -PinfoGitBranch="${CI_COMMIT_BRANCH}" -PinfoBuildSource="GitLab CI (${CI_PIPELINE_ID})" - ./gradlew clean -PmcVer="${MC_VER}" -PinfoGitCommit="${CI_COMMIT_SHA}" -PinfoGitBranch="${CI_COMMIT_BRANCH}" -PinfoBuildSource="GitLab CI (${CI_PIPELINE_ID})" --gradle-user-home cache/;
- ./gradlew build -PmcVer="${MC_VER}" -PinfoGitCommit="${CI_COMMIT_SHA}" -PinfoGitBranch="${CI_COMMIT_BRANCH}" -PinfoBuildSource="GitLab CI (${CI_PIPELINE_ID})" --gradle-user-home cache/;
- cp ./fabric/build/libs/* ./forge/build/libs/* ./neoforge/build/libs/* ./build/forgix/* . || true - cp ./fabric/build/libs/* ./forge/build/libs/* ./neoforge/build/libs/* ./build/forgix/* . || true
artifacts: artifacts:
name: "NightlyBuild_${MC_VER}-${CI_COMMIT_SHORT_SHA}-${CI_COMMIT_TIMESTAMP}" name: "NightlyBuild_${MC_VER}-${CI_COMMIT_SHORT_SHA}-${CI_COMMIT_TIMESTAMP}"
@@ -54,27 +58,18 @@ build:
- ./*-sources.jar - ./*-sources.jar
expire_in: 14 days expire_in: 14 days
when: always when: always
cache: extends: .build_java
key: gradle-${MC_VER}
policy: pull-push
paths:
- .gradle/caches/
- .gradle/notifications/
- coreSubProjects/api/build
- coreSubProjects/core/build
- build
allow_failure: true
api: api:
stage: api stage: api
needs: [] needs: []
dependencies: []
script: script:
# this should only run for the API
- ./gradlew api:clean --gradle-user-home cache/;
# this also runs unit tests # this also runs unit tests
- gradle api:build - ./gradlew api:build --gradle-user-home cache/;
- gradle api:addSourcesToCompiledJar - ./gradlew api:addSourcesToCompiledJar --gradle-user-home cache/;
- cp ./coreSubProjects/api/build/libs/merged/* . - cp ./coreSubProjects/api/build/libs/merged/* .
artifacts: artifacts:
name: "NightlyBuild_Api-${CI_COMMIT_SHORT_SHA}-${CI_COMMIT_TIMESTAMP}" name: "NightlyBuild_Api-${CI_COMMIT_SHORT_SHA}-${CI_COMMIT_TIMESTAMP}"
@@ -86,42 +81,23 @@ api:
- ./*-sources.jar - ./*-sources.jar
expire_in: 1 day expire_in: 1 day
when: always when: always
cache: extends: .build_java
key: gradle-api
policy: pull-push
paths:
- .gradle/caches/
- .gradle/notifications/
- coreSubProjects/api/build
- coreSubProjects/core/build
- build
allow_failure: true
# generate and publish API javadocs # generate and publish API javadocs
pages: pages:
stage: pages stage: pages
needs: [] needs: []
dependencies: []
script: script:
# this should only run for the API
- ./gradlew api:clean --gradle-user-home cache/;
# this also runs unit tests # this also runs unit tests
- gradle api:build - ./gradlew api:build --gradle-user-home cache/;
- gradle api:javadoc - ./gradlew api:javadoc --gradle-user-home cache/;
- mkdir public - mkdir public
- cp -r $CI_PROJECT_DIR/coreSubProjects/api/build/docs/javadoc/. public - cp -r $CI_PROJECT_DIR/coreSubProjects/api/build/docs/javadoc/. public
artifacts: artifacts:
paths: paths:
- public - public
# allow_failure: false allow_failure: false
cache: extends: .build_java
key: gradle-pages
policy: pull-push
paths:
- .gradle/caches/
- .gradle/notifications/
- coreSubProjects/api/build
- coreSubProjects/core/build
- build
allow_failure: true