mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-23 15:34:27 +01:00
feat: handling larger more complex PDF docs (and fix) (#1663)
This commit is contained in:
73
.github/workflows/ci.yml
vendored
73
.github/workflows/ci.yml
vendored
@@ -70,39 +70,76 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-build-
|
||||
|
||||
# Add disk space cleanup before linting
|
||||
- name: Check disk space before build
|
||||
run: df -h
|
||||
|
||||
- name: Aggressive pre-build cleanup
|
||||
run: |
|
||||
# Clean package manager caches
|
||||
sudo apt-get clean
|
||||
sudo apt-get autoremove -y
|
||||
|
||||
sudo rm -rf /opt/hostedtoolcache
|
||||
sudo rm -rf /usr/local/.ghcup
|
||||
sudo rm -rf /opt/hostedtoolcache/
|
||||
sudo rm -rf /usr/local/lib/android/sdk/ndk
|
||||
sudo rm -rf /usr/share/dotnet
|
||||
sudo rm -rf /opt/ghc
|
||||
sudo rm -rf /usr/local/share/boost
|
||||
rm -rf target/debug/deps
|
||||
rm -rf target/debug/incremental
|
||||
|
||||
# Clean up unused swap and memory
|
||||
sudo swapoff -a
|
||||
sudo swapon -a
|
||||
|
||||
echo "Disk space after aggressive cleanup:"
|
||||
df -h
|
||||
|
||||
|
||||
- name: Build and Test
|
||||
run: |
|
||||
gnome-keyring-daemon --components=secrets --daemonize --unlock <<< 'foobar'
|
||||
cargo test
|
||||
working-directory: crates
|
||||
|
||||
- name: Lint
|
||||
run: cargo clippy -- -D warnings
|
||||
|
||||
# Add disk space cleanup before linting
|
||||
- name: Check disk space before cleanup
|
||||
run: df -h
|
||||
|
||||
- name: Clean up disk space
|
||||
- name: Clean up disk space after build
|
||||
run: |
|
||||
echo "Cleaning up disk space..."
|
||||
echo "Cleaning up disk space after build..."
|
||||
# Remove debug artifacts that are no longer needed after tests
|
||||
rm -rf target/debug/deps
|
||||
rm -rf target/debug/build
|
||||
rm -rf target/debug/incremental
|
||||
# Clean npm cache if it exists
|
||||
npm cache clean --force || true
|
||||
# Clean apt cache
|
||||
sudo apt-get clean
|
||||
# Remove unnecessary large directories
|
||||
rm -rf target/debug/deps || true
|
||||
rm -rf target/debug/build || true
|
||||
rm -rf target/debug/incremental || true
|
||||
|
||||
# Clean Cargo cache
|
||||
rm -rf ~/.cargo/registry/src || true
|
||||
rm -rf ~/.cargo/registry/index || true
|
||||
# Remove docker images if any
|
||||
rm -rf ~/.cargo/git/checkouts || true
|
||||
rm -rf ~/.cargo/git/db || true
|
||||
|
||||
# Clean package manager caches
|
||||
npm cache clean --force || true
|
||||
sudo apt-get clean
|
||||
sudo apt-get autoremove -y
|
||||
|
||||
# Remove Docker images if any
|
||||
docker system prune -af || true
|
||||
# Remove unused packages
|
||||
sudo apt-get autoremove -y || true
|
||||
|
||||
# Remove temp files
|
||||
sudo rm -rf /tmp/* || true
|
||||
|
||||
# Check disk space after all cleanup
|
||||
echo "Final disk space:"
|
||||
df -h
|
||||
|
||||
- name: Check disk space after cleanup
|
||||
run: df -h
|
||||
|
||||
- name: Lint
|
||||
run: cargo clippy -- -D warnings
|
||||
|
||||
desktop-lint:
|
||||
name: Lint Electron Desktop App
|
||||
|
||||
Reference in New Issue
Block a user