Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
e9c03abc
Commit
e9c03abc
authored
May 06, 2024
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trying another approach, looping in script
parent
f996a1c3
Pipeline
#12119
failed with stage
in 59 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
24 deletions
+26
-24
.gitlab-ci.yml
.gitlab-ci.yml
+26
-24
No files found.
.gitlab-ci.yml
View file @
e9c03abc
...
@@ -9,23 +9,34 @@ cache:
...
@@ -9,23 +9,34 @@ cache:
stages
:
stages
:
-
build
-
build
.build_template
:
&build_definition
build_mod
:
stage
:
build
stage
:
build
script
:
script
:
-
echo "Building for Minecraft Version $minecraft_version with Fabric $fabric_version"
-
|
-
sed -i "s/minecraft_version=.*/minecraft_version=$minecraft_version/" gradle.properties
declare -a versions=("1.20" "1.20.1" "1.20.2" "1.20.3" "1.20.4" "1.20.5" "1.20.6")
-
sed -i "s/yarn_mappings=.*/yarn_mappings=$yarn_mappings/" gradle.properties
declare -a mappings=("1.20+build.1" "1.20.1+build.10" "1.20.2+build.4" "1.20.3+build.1" "1.20.4+build.3" "1.20.5+build.1" "1.20.6+build.1")
-
sed -i "s/loader_version=.*/loader_version=$loader_version/" gradle.properties
declare -a fabric_versions=("0.83.0+1.20" "0.92.1+1.20.1" "0.91.6+1.20.2" "0.91.1+1.20.3" "0.97.0+1.20.4" "0.97.8+1.20.5" "0.97.8+1.20.6")
-
sed -i "s/fabric_version=.*/fabric_version=$fabric_version/" gradle.properties
-
./gradlew build
for i in "${!versions[@]}"; do
-
find build/libs -type f -name '*sources*.jar' -exec rm {} \;
minecraft_version="${versions[$i]}"
-
mv build/libs/creaturechat-*.jar .
yarn_mappings="${mappings[$i]}"
-
export FABRIC_API_JAR="fabric-api-${fabric_version}.jar"
fabric_version="${fabric_versions[$i]}"
-
echo Detected Fabric API version from gradle.properties $FABRIC_API_JAR
-
export DOWNLOAD_URL="https://github.com/FabricMC/fabric/releases/download/${fabric_version//+/%2B}/${FABRIC_API_JAR}"
echo "Building for Minecraft Version $minecraft_version with Fabric $fabric_version"
-
echo Download Fabric API from $DOWNLOAD_URL
sed -i "s/minecraft_version=.*/minecraft_version=$minecraft_version/" gradle.properties
-
wget -q -O "${FABRIC_API_JAR}" $DOWNLOAD_URL
sed -i "s/yarn_mappings=.*/yarn_mappings=$yarn_mappings/" gradle.properties
-
ls . -la
sed -i "s/loader_version=.*/loader_version=0.15.11/" gradle.properties
sed -i "s/fabric_version=.*/fabric_version=$fabric_version/" gradle.properties
./gradlew build
find build/libs -type f -name '*sources*.jar' -exec rm {} \;
mv build/libs/creaturechat-*.jar .
FABRIC_API_JAR="fabric-api-${fabric_version}.jar"
DOWNLOAD_URL="https://github.com/FabricMC/fabric/releases/download/${fabric_version//+/%2B}/${FABRIC_API_JAR}"
wget -q -O "${FABRIC_API_JAR}" $DOWNLOAD_URL
ls . -la
done
artifacts
:
artifacts
:
paths
:
paths
:
-
creaturechat-*.jar
-
creaturechat-*.jar
...
@@ -34,12 +45,3 @@ stages:
...
@@ -34,12 +45,3 @@ stages:
-
multi-version-build-pipeline
-
multi-version-build-pipeline
tags
:
tags
:
-
minecraft
-
minecraft
build_mod
:
extends
:
.build_template
parallel
:
matrix
:
-
minecraft_version
:
[
"
1.20"
,
"
1.20.1"
,
"
1.20.2"
,
"
1.20.3"
,
"
1.20.4"
,
"
1.20.5"
,
"
1.20.6"
]
yarn_mappings
:
[
"
1.20+build.1"
,
"
1.20.1+build.10"
,
"
1.20.2+build.4"
,
"
1.20.3+build.1"
,
"
1.20.4+build.3"
,
"
1.20.5+build.1"
,
"
1.20.6+build.1"
]
loader_version
:
[
"
0.15.11"
,
"
0.15.11"
,
"
0.15.11"
,
"
0.15.11"
,
"
0.15.11"
,
"
0.15.11"
,
"
0.15.11"
]
fabric_version
:
[
"
0.83.0+1.20"
,
"
0.92.1+1.20.1"
,
"
0.91.6+1.20.2"
,
"
0.91.1+1.20.3"
,
"
0.97.0+1.20.4"
,
"
0.97.8+1.20.5"
,
"
0.97.8+1.20.6"
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment