70 lines
2.0 KiB
YAML
70 lines
2.0 KiB
YAML
# use Eclipse's JDK
|
|
image: gradle:eclipse-temurin
|
|
|
|
# all stages need to be defined here
|
|
stages:
|
|
#- gradleSetup
|
|
#- build_18-1
|
|
#- build_18-2
|
|
- artifacts
|
|
|
|
variables:
|
|
# If we have correctness issues when compiling this can be set to false
|
|
GRADLE_OPTS: "-Dorg.gradle.daemon=true"
|
|
# Pull core when building
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
|
|
before_script:
|
|
- echo $CI_JOB_ID
|
|
# Writing GE_JOB_ID variable to environment file, will need the value in the next stage.
|
|
- echo GE_JOB_ID=$CI_JOB_ID >> generate_jars.env
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# put artifacts in a zip
|
|
artifacts:
|
|
stage: artifacts
|
|
script: echo 'Building complete. Creating artifact Zip.'
|
|
# build using Java 17
|
|
image: eclipse-temurin:17
|
|
artifacts:
|
|
# This should only be done for the last build, otherwise there will be duplicate jars
|
|
name: "Merged_NightlyBuild-${CI_COMMIT_SHORT_SHA}-${CI_COMMIT_TIMESTAMP}_18-2"
|
|
paths:
|
|
# relative to the root directory
|
|
- Merged
|
|
expire_in: 1 day
|
|
|
|
|
|
|
|
# unused deployment stage
|
|
#deploy:
|
|
# stage: deploy
|
|
# image: registry.gitlab.com/gitlab-org/release-cli:latest
|
|
# script:
|
|
# - echo 'running release_job'
|
|
# - echo 'Previous Job ID is printed below'
|
|
# - echo $GE_JOB_ID
|
|
# # Specifying that this job requires artifacts from the previous job to succeed
|
|
# needs:
|
|
# - job: build
|
|
# artifacts: true
|
|
# release:
|
|
# name: 'Unstable Jars for Latest Commit' #: $CI_COMMIT_SHORT_SHA'
|
|
# description: 'Created automatically using the release-cli.'
|
|
# # tag_name is a mendatory field and can not be an empty string
|
|
# tag_name: 'Unstable-$CI_COMMIT_SHORT_SHA'
|
|
# assets:
|
|
# links:
|
|
# - name: 'Fabric Jars'
|
|
# url: 'https://gitlab.com/jeseibel/minecraft-lod-mod/cw/-/jobs/${GE_JOB_ID}/artifacts/file/fabric/build/libs'
|
|
# - name: 'Forge Jars'
|
|
# url: 'https://gitlab.com/jeseibel/minecraft-lod-mod/cw/-/jobs/${GE_JOB_ID}/artifacts/file/forge/build/libs'
|