Skip to content

Commit 7bdc2c1

Browse files
authored
Merge pull request #539 from dshadowwolf/prep-actual-release-candidate
Prep actual release candidate
2 parents d98e5d1 + fd27765 commit 7bdc2c1

1,193 files changed

Lines changed: 25661 additions & 14270 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.editorconfig‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ root = true
33
[*]
44
end_of_line = lf
55
insert_final_newline = true
6-
7-
[*.java]
86
charset = utf-8
9-
indent_style = tab
7+
indent_style = space
108
indent_size = 4
119
trim_trailing_whitespace = true
10+
max_line_length = 120
1211

1312
[*.md]
1413
trim_trailing_whitespace = false
14+
15+
[*.{json,toml,properties,yml}]
16+
indent_size = 2

‎.gitattributes‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,3 @@ src/generated/**/*.json text eol=lf
99
*.md text eol=lf
1010
/gradlew text eol=lf
1111
/gradlew.bat text eol=lf
12-
13-
# Keep the original whitespace in checksum-verified patch files.
14-
/ci-fixtures/tools/*.patch whitespace=-blank-at-eol,-blank-at-eof

‎.github/workflows/ci.yml‎

Lines changed: 38 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -1,158 +1,69 @@
1-
name: Base Metals 1.19.4 CI
1+
name: Base Metals CI
22

33
on:
44
push:
55
branches:
6-
- master-1.19.4
6+
- 'master-1.21.1-neo'
77
- 'feature/**'
88
pull_request:
99
branches:
10-
- master-1.19.4
10+
- 'master-1.21.1-neo'
11+
12+
env:
13+
JAVA_VERSION: '21'
1114

1215
permissions:
1316
contents: read
17+
checks: write
18+
pull-requests: write
1419

1520
concurrency:
16-
group: basemetals-1.19.4-${{ github.workflow }}-${{ github.ref }}
21+
group: basemetals-ci-${{ github.ref }}
1722
cancel-in-progress: true
1823

1924
jobs:
2025
build:
21-
name: Build, test, and audit
26+
name: Build & Test
2227
runs-on: ubuntu-latest
23-
timeout-minutes: 90
28+
timeout-minutes: 20
2429

2530
steps:
26-
- name: Check out source
27-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
31+
- name: Checkout code
32+
uses: actions/checkout@v4
2833

29-
- name: Install pinned Java 17 runtime and toolchain
30-
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
34+
- name: Set up JDK ${{ env.JAVA_VERSION }}
35+
uses: actions/setup-java@v4
3136
with:
32-
distribution: temurin
33-
java-version: '17.0.1+12'
34-
35-
- name: Set up Gradle
36-
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6
37-
38-
- name: Stage exact OreSpawn release dependency
39-
id: orespawn
40-
run: |
41-
mirror="$RUNNER_TEMP/orespawn-mirror"
42-
bash gradle/stage-orespawn-release.sh "$mirror"
43-
echo "repository=$mirror" >> "$GITHUB_OUTPUT"
44-
45-
- name: Build, test, and audit first candidate
46-
run: |
47-
chmod +x ./gradlew
48-
./gradlew clean check build javadoc verifyReleaseArtifacts writeReleaseChecksums \
49-
-PorespawnVerificationRepository="${{ steps.orespawn.outputs.repository }}" \
50-
--no-daemon --stacktrace
51-
first="$RUNNER_TEMP/basemetals-first"
52-
mkdir -p "$first"
53-
cp build/libs/BaseMetals-3.1.0.119041.jar "$first/"
54-
cp build/libs/BaseMetals-3.1.0.119041-sources.jar "$first/"
55-
cp build/libs/BaseMetals-3.1.0.119041-javadoc.jar "$first/"
56-
cp build/release/SHA256SUMS "$first/"
57-
58-
- name: Rebuild and prove byte-identical archives
59-
run: |
60-
./gradlew clean assemble verifyReleaseArtifacts writeReleaseChecksums \
61-
-PorespawnVerificationRepository="${{ steps.orespawn.outputs.repository }}" \
62-
--no-daemon --stacktrace
63-
cmp "$RUNNER_TEMP/basemetals-first/BaseMetals-3.1.0.119041.jar" build/libs/BaseMetals-3.1.0.119041.jar
64-
cmp "$RUNNER_TEMP/basemetals-first/BaseMetals-3.1.0.119041-sources.jar" build/libs/BaseMetals-3.1.0.119041-sources.jar
65-
cmp "$RUNNER_TEMP/basemetals-first/BaseMetals-3.1.0.119041-javadoc.jar" build/libs/BaseMetals-3.1.0.119041-javadoc.jar
66-
cmp "$RUNNER_TEMP/basemetals-first/SHA256SUMS" build/release/SHA256SUMS
37+
java-version: ${{ env.JAVA_VERSION }}
38+
distribution: 'microsoft'
6739

68-
- name: Run all required GameTests
69-
run: >-
70-
timeout 15m ./gradlew runGameTestServer
71-
-PorespawnVerificationRepository=${{ steps.orespawn.outputs.repository }}
72-
--no-daemon --stacktrace
40+
- name: Setup Gradle
41+
uses: gradle/actions/setup-gradle@v4
7342

74-
- name: Install official Forge packaged runtimes
75-
id: forge-runtimes
76-
run: |
77-
server_runtime="$RUNNER_TEMP/forge-1.19.4-45.4.0-server"
78-
client_runtime="$RUNNER_TEMP/forge-1.19.4-45.4.0-client"
79-
installer="$RUNNER_TEMP/forge-1.19.4-45.4.0-installer.jar"
80-
mkdir -p "$server_runtime" "$client_runtime"
81-
curl --fail --location --retry 3 \
82-
--output "$installer" \
83-
https://maven.minecraftforge.net/net/minecraftforge/forge/1.19.4-45.4.0/forge-1.19.4-45.4.0-installer.jar
84-
echo "6643bb8c21f409cc528ff656daf60c206d304cc77bf529bbbab4b336004dfc53 $installer" | sha256sum --check --strict
85-
(
86-
cd "$server_runtime"
87-
java -jar "$installer" --installServer
88-
)
89-
python3 gradle/prepare-forge-client-runtime.py \
90-
--installer "$installer" \
91-
--runtime "$client_runtime" \
92-
--java "$JAVA_HOME/bin/java"
93-
echo "server_runtime=$server_runtime" >> "$GITHUB_OUTPUT"
94-
echo "client_runtime=$client_runtime" >> "$GITHUB_OUTPUT"
43+
- name: Grant execute permission for gradlew
44+
run: chmod +x ./gradlew
9545

96-
- name: Run exact packaged dedicated-server smoke
97-
run: >-
98-
timeout 15m ./gradlew packagedServerStartupSmoke
99-
-PpackagedForgeServerRuntime=${{ steps.forge-runtimes.outputs.server_runtime }}
100-
-PorespawnVerificationRepository=${{ steps.orespawn.outputs.repository }}
101-
--no-daemon --stacktrace
46+
- name: Build with Gradle
47+
env:
48+
BUILD_NUMBER: ${{ github.run_number }}
49+
run: ./gradlew assemble
10250

103-
- name: Run exact packaged integrated-world client smoke
104-
run: >-
105-
timeout 15m xvfb-run -a ./gradlew packagedClientStartupSmoke
106-
-PpackagedForgeClientRuntime=${{ steps.forge-runtimes.outputs.client_runtime }}
107-
-PorespawnVerificationRepository=${{ steps.orespawn.outputs.repository }}
108-
--no-daemon --stacktrace
51+
- name: Run tests
52+
run: ./gradlew check
10953

110-
- name: Run bounded development integrated-world client smoke
111-
run: >-
112-
timeout 15m xvfb-run -a ./gradlew runClient
113-
-PintegratedWorldSmoke=true
114-
-PintegratedWorldSmokeName=basemetals-ci-${{ github.run_id }}
115-
-PorespawnVerificationRepository=${{ steps.orespawn.outputs.repository }}
116-
--no-daemon --stacktrace
117-
118-
- name: Generate and audit Eclipse production launches
119-
run: >-
120-
./gradlew genEclipseRuns eclipse isolateEclipseProductionRuns verifyEclipseProductionClasspath
121-
-PorespawnVerificationRepository=${{ steps.orespawn.outputs.repository }}
122-
--no-daemon --stacktrace
123-
124-
- name: Upload audited release candidate
125-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
54+
- name: Publish Test Report
55+
uses: mikepenz/action-junit-report@v4
56+
if: success() || failure()
12657
with:
127-
name: BaseMetals-1.19.4-${{ github.sha }}
128-
if-no-files-found: error
129-
retention-days: 30
130-
path: |
131-
build/libs/BaseMetals-3.1.0.119041.jar
132-
build/libs/BaseMetals-3.1.0.119041-sources.jar
133-
build/libs/BaseMetals-3.1.0.119041-javadoc.jar
134-
build/release/SHA256SUMS
135-
CHANGELOG.txt
58+
report_paths: '**/build/test-results/test/TEST-*.xml'
13659

137-
- name: Upload bounded diagnostics on failure
138-
if: failure()
139-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
60+
- name: Upload build artifacts
61+
if: success()
62+
uses: actions/upload-artifact@v4
14063
with:
141-
name: BaseMetals-1.19.4-diagnostics-${{ github.sha }}
142-
if-no-files-found: ignore
64+
name: ${{ github.event.repository.name }}-${{ github.sha }}
65+
if-no-files-found: error
14366
retention-days: 14
14467
path: |
145-
build/test-results/**
146-
build/reports/**
147-
run/logs/**
148-
run/crash-reports/**
149-
run-gametest/logs/**
150-
run-gametest/crash-reports/**
151-
run-integrated-smoke/logs/**
152-
run-integrated-smoke/crash-reports/**
153-
run-data/logs/**
154-
build/problems/**
155-
build/packaged-server-run/logs/**
156-
build/packaged-server-run/crash-reports/**
157-
build/packaged-client-run/logs/**
158-
build/packaged-client-run/crash-reports/**
68+
build/libs/*.jar
69+
CHANGELOG.md

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: CodeQL
33
on:
44
push:
55
branches:
6-
- master-1.19.4
6+
- 'master-1.21.1-neo'
77
- 'feature/**'
88
pull_request:
99
branches:
10-
- master-1.19.4
10+
- 'master-1.21.1-neo'
1111

1212
permissions:
1313
actions: read
@@ -18,39 +18,30 @@ jobs:
1818
analyze:
1919
name: Analyze Java
2020
runs-on: ubuntu-latest
21-
timeout-minutes: 45
21+
timeout-minutes: 30
2222

2323
steps:
2424
- name: Check out source
25-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
25+
uses: actions/checkout@v4
2626

27-
- name: Install pinned Java 17 runtime and toolchain
28-
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
27+
- name: Install Java 21
28+
uses: actions/setup-java@v4
2929
with:
30-
distribution: temurin
31-
java-version: '17.0.1+12'
30+
distribution: 'microsoft'
31+
java-version: '21'
3232

3333
- name: Set up Gradle
34-
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6
35-
36-
- name: Stage exact OreSpawn release dependency
37-
id: orespawn
38-
run: |
39-
mirror="$RUNNER_TEMP/orespawn-mirror"
40-
bash gradle/stage-orespawn-release.sh "$mirror"
41-
echo "repository=$mirror" >> "$GITHUB_OUTPUT"
34+
uses: gradle/actions/setup-gradle@v4
4235

4336
- name: Initialize CodeQL
44-
uses: github/codeql-action/init@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4
37+
uses: github/codeql-action/init@v3
4538
with:
4639
languages: java-kotlin
4740

4841
- name: Compile production code
4942
run: |
5043
chmod +x ./gradlew
51-
./gradlew clean classes --rerun-tasks --no-build-cache \
52-
-PorespawnVerificationRepository="${{ steps.orespawn.outputs.repository }}" \
53-
--no-daemon --stacktrace
44+
./gradlew clean classes --no-daemon
5445
5546
- name: Analyze
56-
uses: github/codeql-action/analyze@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4
47+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)