Removed caching layers

This commit is contained in:
Connor Yoh 2025-07-10 14:36:49 +01:00
parent 0bd5d8d3f2
commit 61f9878e8f

View File

@ -98,18 +98,7 @@ jobs:
toolchain: stable
targets: ${{ (matrix.platform == 'macos-latest' || matrix.platform == 'macos-13') && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './frontend/src-tauri -> target'
- name: Cache JLink runtime
uses: actions/cache@v4
with:
path: ./frontend/src-tauri/runtime/jre
key: jlink-runtime-${{ runner.os }}-jdk21-${{ hashFiles('stirling-pdf/build.gradle') }}
restore-keys: |
jlink-runtime-${{ runner.os }}-jdk21-
- name: Set up JDK 21
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
@ -153,11 +142,13 @@ jobs:
MODULES="java.base,java.compiler,java.desktop,java.instrument,java.logging,java.management,java.naming,java.net.http,java.prefs,java.rmi,java.scripting,java.security.jgss,java.security.sasl,java.sql,java.transaction.xa,java.xml,java.xml.crypto,jdk.crypto.ec,jdk.crypto.cryptoki,jdk.unsupported"
fi
# Create custom JRE with jlink (if not cached)
if [ ! -d "./frontend/src-tauri/runtime/jre" ]; then
# Create custom JRE with jlink (always rebuild)
echo "🔧 Creating custom JRE with jlink..."
echo "📋 Using modules: $MODULES"
# Remove any existing JRE
rm -rf ./frontend/src-tauri/runtime/jre
# Create the custom JRE
jlink \
--add-modules "$MODULES" \
@ -171,9 +162,6 @@ jobs:
echo "❌ Failed to create JLink runtime"
exit 1
fi
else
echo "✅ Using cached JLink runtime"
fi
# Test the bundled runtime
if [ -f "./frontend/src-tauri/runtime/jre/bin/java" ]; then