Skip to content

Commit e109f9c

Browse files
Merge master into 1.21.10
1 parent 6b94225 commit e109f9c

File tree

6 files changed

+28
-16
lines changed

6 files changed

+28
-16
lines changed

.github/workflows/multi_publish.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,22 @@ on:
66
inputs:
77
wurst_version:
88
description: "Wurst version (without v or -MC)"
9-
required: true
109
type: string
10+
required: true
1111
branches:
1212
description: "Space-separated list of branches to publish from"
13-
required: true
1413
type: string
14+
required: true
1515
announce_update:
1616
description: "Announce as an update on WurstForum"
17-
required: true
1817
type: boolean
1918
default: false
2019
announce_ports:
2120
description: "Announce as ports on WurstForum"
22-
required: true
2321
type: boolean
2422
default: false
2523
dry_run:
2624
description: "Dry-run mode (don't actually publish anything)"
27-
required: false
2825
type: boolean
2926
default: false
3027

@@ -47,6 +44,15 @@ jobs:
4744
JSON_ARRAY="[${quoted_branches%,}]"
4845
echo "branches=$JSON_ARRAY" >> "$GITHUB_OUTPUT"
4946
echo "Branches: $JSON_ARRAY" >> "$GITHUB_STEP_SUMMARY"
47+
- name: Verify mod_version is as expected
48+
run: |
49+
expected_prefix="v${{ inputs.wurst_version }}-MC"
50+
for branch in ${{ inputs.branches }}; do
51+
url="https://raw.githubusercontent.com/${{ github.repository }}/${branch}/gradle.properties"
52+
actual=$(curl -sf "$url" | grep "^mod_version=" | cut -d'=' -f2)
53+
echo "$branch: $actual"
54+
[[ "$actual" == "$expected_prefix"* ]] || { echo "::error::Expected $expected_prefix*, got $actual"; exit 1; }
55+
done
5056
5157
publish_each:
5258
runs-on: ubuntu-latest
@@ -62,14 +68,13 @@ jobs:
6268
fail-fast: true
6369
matrix:
6470
branch: ${{ fromJson(needs.prepare.outputs.branches) }}
65-
# TODO: Maybe also verify that the wurst_version in each branch is as expected before publishing?
6671
steps:
6772
- name: Trigger publish workflow
6873
uses: Wurst-Imperium/dispatch-and-wait@v1
6974
with:
7075
token: ${{ github.token }}
71-
owner: Wurst-Imperium
72-
repo: Wurst7
76+
owner: ${{ github.repository_owner }}
77+
repo: ${{ github.event.repository.name }}
7378
ref: ${{ matrix.branch }}
7479
workflow: publish.yml
7580
workflow_inputs: |

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,22 @@ on:
66
inputs:
77
close_milestone:
88
description: "Close milestone"
9-
required: true
109
type: boolean
1110
default: true
1211
upload_backups:
1312
description: "Upload to backups server"
14-
required: true
1513
type: boolean
1614
default: true
1715
publish_github:
1816
description: "Publish to GitHub"
19-
required: true
2017
type: boolean
2118
default: true
2219
update_website:
2320
description: "Update WurstClient.net post (only works if there already is one)"
24-
required: true
2521
type: boolean
2622
default: false
2723
distinct_id:
24+
type: string
2825
required: false
2926

3027
permissions:
@@ -69,6 +66,7 @@ jobs:
6966
run: ./gradlew build --stacktrace --warning-mode=fail
7067

7168
- name: Create and push tag
69+
if: ${{ github.ref_type != 'tag' }}
7270
run: |
7371
MOD_VERSION=$(grep "^mod_version=" gradle.properties | cut -d'=' -f2 | tr -d ' \r')
7472
git config --global user.name "Wurst-Bot"

build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,20 @@ loom {
6868
accessWidenerPath = file("src/main/resources/wurst.accesswidener")
6969

7070
runs {
71+
clientGameTest {
72+
vmArgs.add("-Dfabric.client.gametest.disableNetworkSynchronizer=true")
73+
}
74+
7175
clientWithMods {
7276
inherit client
7377
}
74-
78+
7579
clientGameTestWithMods {
7680
inherit client
7781
source = sourceSets.gametest
7882
runDir = "build/run/clientGameTestWithMods"
7983
vmArgs.add("-Dfabric.client.gametest")
84+
vmArgs.add("-Dfabric.client.gametest.disableNetworkSynchronizer=true")
8085
vmArgs.add("-Dwurst.test.withMods=true")
8186
programArgs.add("--username=Wurst-Bot")
8287
}

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ org.gradle.configuration-cache=true
88
# https://modrinth.com/mod/fabric-api/versions
99
minecraft_version=1.21.10
1010
yarn_mappings=1.21.10+build.2
11-
loader_version=0.18.1
11+
loader_version=0.18.2
1212
loom_version=1.14-SNAPSHOT
1313

1414
# Fabric API
1515
fabric_version=0.138.3+1.21.10
1616

1717
# Mod Properties
18-
mod_version=v7.51.2-MC1.21.10
18+
mod_version=v7.51.3-MC1.21.10
1919
maven_group=net.wurstclient
2020
archives_base_name=Wurst-Client
2121
mod_loader=Fabric

src/gametest/java/net/wurstclient/gametest/WurstTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import net.fabricmc.fabric.api.client.gametest.v1.context.TestServerContext;
2424
import net.fabricmc.fabric.api.client.gametest.v1.context.TestSingleplayerContext;
2525
import net.fabricmc.fabric.api.client.gametest.v1.world.TestWorldBuilder;
26+
import net.fabricmc.fabric.impl.client.gametest.TestSystemProperties;
2627
import net.minecraft.SharedConstants;
2728
import net.minecraft.client.gui.screens.worldselection.WorldCreationUiState;
2829
import net.minecraft.world.level.GameRules;
@@ -42,6 +43,9 @@ public class WurstTest implements FabricClientGameTest
4243
@Override
4344
public void runTest(ClientGameTestContext context)
4445
{
46+
if(!TestSystemProperties.DISABLE_NETWORK_SYNCHRONIZER)
47+
throw new RuntimeException("Network synchronizer is not disabled");
48+
4549
LOGGER.info("Starting Wurst Client GameTest");
4650
hideSplashTexts(context);
4751
waitForTitleScreenFade(context);

src/main/java/net/wurstclient/WurstClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public enum WurstClient
5050
public static Minecraft MC;
5151
public static IMinecraftClient IMC;
5252

53-
public static final String VERSION = "7.51.2";
53+
public static final String VERSION = "7.51.3";
5454
public static final String MC_VERSION = "1.21.10";
5555

5656
private PlausibleAnalytics plausible;

0 commit comments

Comments
 (0)