101 lines
4.4 KiB
YAML
101 lines
4.4 KiB
YAML
|
include: https://jfmods.gitlab.io/scripts/docs.yml
|
||
|
|
||
|
pipeline:
|
||
|
export_metadata:
|
||
|
image: gradle:alpine
|
||
|
pull: true
|
||
|
environment:
|
||
|
- GRADLE_OPTS=-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx2G
|
||
|
- GRADLE_USER_HOME=${CI_WORKSPACE}/.gradle
|
||
|
commands:
|
||
|
- mkdir public
|
||
|
- gradle --build-cache :exportMetadata -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
||
|
- mv version.json public/
|
||
|
build_platform_jars:
|
||
|
image: gradle:alpine
|
||
|
pull: true
|
||
|
environment:
|
||
|
- GRADLE_OPTS=-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx2G
|
||
|
- GRADLE_USER_HOME=${CI_WORKSPACE}/.gradle
|
||
|
commands:
|
||
|
- gradle --build-cache :launcher-dist:build -Pflavor=fat -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
||
|
- gradle --build-cache :launcher-dist:build -Pflavor=windows -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
||
|
- gradle --build-cache :launcher-dist:build -Pflavor=linux -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
||
|
- gradle --build-cache :launcher-dist:build -Pflavor=macos -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
||
|
- for f in launcher-dist/build/libs/Inceptum-*-*-*.jar; do mv "$f" "public/Inceptum-${f##*-}";done
|
||
|
- mv public/Inceptum-fat.jar public/Inceptum.jar
|
||
|
build_wrapper:
|
||
|
image: gradle:alpine
|
||
|
pull: true
|
||
|
environment:
|
||
|
- GRADLE_OPTS=-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx2G
|
||
|
- GRADLE_USER_HOME=${CI_WORKSPACE}/.gradle
|
||
|
commands:
|
||
|
- gradle --build-cache :wrapper:build -Pflavor=windows -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
||
|
- cp wrapper/build/libs/*.exe public/wrapper.exe
|
||
|
- cp wrapper/build/libs/*-all.jar public/wrapper.jar
|
||
|
publish_debug:
|
||
|
image: gradle:alpine
|
||
|
pull: true
|
||
|
environment:
|
||
|
- GRADLE_OPTS=-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx2G
|
||
|
- GRADLE_USER_HOME=${CI_WORKSPACE}/.gradle
|
||
|
commands:
|
||
|
- gradle --build-cache build publish -Pflavor=maven -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
||
|
- gradle --build-cache build :launcher-dist:publish -Pflavor=fat -Pdist.platformOnly -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
||
|
- gradle --build-cache build :launcher-dist:publish -Pflavor=windows -Pdist.platformOnly -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
||
|
- gradle --build-cache build :launcher-dist:publish -Pflavor=linux -Pdist.platformOnly -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
||
|
- gradle --build-cache build :launcher-dist:publish -Pflavor=macos -Pdist.platformOnly -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
|
||
|
secrets: [ maven_token ]
|
||
|
when:
|
||
|
- branch: master
|
||
|
publish_release:
|
||
|
image: gradle:alpine
|
||
|
pull: true
|
||
|
environment:
|
||
|
- GRADLE_OPTS=-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx2G
|
||
|
- GRADLE_USER_HOME=${CI_WORKSPACE}/.gradle
|
||
|
commands:
|
||
|
- gradle --build-cache build publish -Pflavor=maven -Ppublic -Prelease
|
||
|
- gradle --build-cache build :launcher-dist:publish -Pflavor=fat -Pdist.platformOnly -Ppublic -Prelease
|
||
|
- gradle --build-cache build :launcher-dist:publish -Pflavor=windows -Pdist.platformOnly -Ppublic -Prelease
|
||
|
- gradle --build-cache build :launcher-dist:publish -Pflavor=linux -Pdist.platformOnly -Ppublic -Prelease
|
||
|
- gradle --build-cache build :launcher-dist:publish -Pflavor=macos -Pdist.platformOnly -Ppublic -Prelease
|
||
|
secrets: [ maven_token ]
|
||
|
when:
|
||
|
- event: tag
|
||
|
branch: master
|
||
|
portable:
|
||
|
image: archlinux:latest
|
||
|
pull: true
|
||
|
commands:
|
||
|
- pacman -Sy p7zip curl jq --noconfirm
|
||
|
- mkdir -p portable/jvm
|
||
|
- cp wrapper.jar portable/
|
||
|
- curl -L "https://github.com/pal1000/mesa-dist-win/releases/download/21.2.5/mesa3d-21.2.5-release-msvc.7z" --output mesa.7z
|
||
|
- 7z e mesa.7z -oportable/run/natives/forceload x64/dxil.dll x64/libglapi.dll x64/opengl32.dll
|
||
|
- curl -L "https://api.adoptium.net/v3/binary/latest/18/ga/windows/x64/jre/hotspot/normal/eclipse?project=jdk" --output jvm.zip
|
||
|
- 7z x jvm.zip -oportable/
|
||
|
- mv portable/jdk*/* portable/jvm/
|
||
|
- rm -r portable/jdk*
|
||
|
- cp packaging/windows/launch.bat portable/
|
||
|
- cd portable
|
||
|
- 7z a ../public/portable.7z * -mx9
|
||
|
when:
|
||
|
- branch: master
|
||
|
publish:
|
||
|
image: woodpeckerci/plugin-s3
|
||
|
settings:
|
||
|
bucket: pages
|
||
|
region: nebula
|
||
|
path_style: true
|
||
|
endpoint: https://s3.frohnmeyer-wds.de
|
||
|
access_key: pages
|
||
|
secret_key:
|
||
|
from_secret: pages_secret
|
||
|
source: public/**/*
|
||
|
target: /${CI_REPO}
|
||
|
strip_prefix: public/
|
||
|
when:
|
||
|
- branch: master
|