mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 07:36:01 +00:00
Move to RetroFuturaGradle
This commit is contained in:
10 files changed
+316
-218
No files matched your search
@@ -56,17 +56,32 @@ jobs:
|
||||
${{ github.event_name == 'pull_request_target' &&
|
||||
github.event.pull_request.head.sha || '' }}
|
||||
|
||||
- name: Set up JDK 8
|
||||
- name: Set up JDK 25
|
||||
uses: actions/setup-java@v6
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '8'
|
||||
java-version: '25'
|
||||
|
||||
- name: Set up Gradle
|
||||
uses: gradle/actions/setup-gradle@v6
|
||||
with:
|
||||
validate-wrappers: true
|
||||
|
||||
- name: Remove incompatible legacy ForgeGradle mappings cache
|
||||
shell: bash
|
||||
run: |
|
||||
minecraft_version="$(sed -n 's/^minecraft_version=//p' gradle.properties | tr -d '\r' | tail -n 1)"
|
||||
mappings="$(sed -n 's/^mappings_version=//p' gradle.properties | tr -d '\r' | tail -n 1)"
|
||||
if [[ "$minecraft_version" == '1.12.2' && "$mappings" =~ ^(stable|snapshot)_([0-9]+)$ ]]; then
|
||||
channel="${BASH_REMATCH[1]}"
|
||||
mapping_version="${BASH_REMATCH[2]}"
|
||||
cache_dir="${GRADLE_USER_HOME:-$HOME/.gradle}/caches/minecraft/de/oceanlabs/mcp/mcp_${channel}/${mapping_version}"
|
||||
if [[ -d "$cache_dir" && ! -f "$cache_dir/joined.srg" ]]; then
|
||||
echo "Removing incompatible legacy mappings cache: $cache_dir"
|
||||
rm -rf -- "$cache_dir"
|
||||
fi
|
||||
fi
|
||||
|
||||
- name: Grant execute permission for Gradle
|
||||
run: chmod +x gradlew
|
||||
|
||||
|
||||
@@ -34,17 +34,32 @@ jobs:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.release.tag_name }}
|
||||
|
||||
- name: Set up JDK 8
|
||||
- name: Set up JDK 25
|
||||
uses: actions/setup-java@v6
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '8'
|
||||
java-version: '25'
|
||||
|
||||
- name: Set up Gradle
|
||||
uses: gradle/actions/setup-gradle@v6
|
||||
with:
|
||||
validate-wrappers: true
|
||||
|
||||
- name: Remove incompatible legacy ForgeGradle mappings cache
|
||||
shell: bash
|
||||
run: |
|
||||
minecraft_version="$(sed -n 's/^minecraft_version=//p' gradle.properties | tr -d '\r' | tail -n 1)"
|
||||
mappings="$(sed -n 's/^mappings_version=//p' gradle.properties | tr -d '\r' | tail -n 1)"
|
||||
if [[ "$minecraft_version" == '1.12.2' && "$mappings" =~ ^(stable|snapshot)_([0-9]+)$ ]]; then
|
||||
channel="${BASH_REMATCH[1]}"
|
||||
mapping_version="${BASH_REMATCH[2]}"
|
||||
cache_dir="${GRADLE_USER_HOME:-$HOME/.gradle}/caches/minecraft/de/oceanlabs/mcp/mcp_${channel}/${mapping_version}"
|
||||
if [[ -d "$cache_dir" && ! -f "$cache_dir/joined.srg" ]]; then
|
||||
echo "Removing incompatible legacy mappings cache: $cache_dir"
|
||||
rm -rf -- "$cache_dir"
|
||||
fi
|
||||
fi
|
||||
|
||||
- name: Grant execute permission for Gradle
|
||||
run: chmod +x gradlew
|
||||
|
||||
|
||||
Reference in new issue
Block a user