A high-performance Android storage analyzer that bypasses MTP using a native C++ daemon, a Rust TCP bridge, and a React Treemap UI.
Rust
Require each installer output before artifact upload (#177)
Vishnu Srivatsava1317f1e32f47
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 5916967..b31f902 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -20,14 +20,25 @@ jobs:# catalog ("error-glibc-too-new" otherwise).- os: ubuntu-22.04platform: linux+ installer_artifact: SocketSweep-Linux+ installer_paths: |+ src-tauri/target/release/bundle/deb/*.deb+ src-tauri/target/release/bundle/appimage/*.AppImage+ src-tauri/target/release/bundle/appimage/*.AppImage.zsyncadb_url: https://dl.google.com/android/repository/platform-tools_r37.0.1-linux.zipadb_sha256: d230f13842f60f782a8645f9c813f8f845bf36089ea7289f28c48f17979313f1- os: macos-latestplatform: macos+ installer_artifact: SocketSweep-macOS+ installer_paths: src-tauri/target/release/bundle/dmg/*.dmgadb_url: https://dl.google.com/android/repository/platform-tools_r37.0.1-darwin.zipadb_sha256: ee39ad5967e95c2a07f04dbcbde96b1a0c916ba376096db5d2f498b7727a5d1d- os: windows-latestplatform: windows+ installer_artifact: SocketSweep-Windows+ installer_paths: |+ src-tauri/target/release/bundle/msi/*.msi+ src-tauri/target/release/bundle/nsis/*.exeadb_url: https://dl.google.com/android/repository/platform-tools_r37.0.1-win.zipadb_sha256: 45f4d63113e895ebde0c90f194099a4676b6ac653bd28d54314a9e022bbc1a99@@ -335,31 +346,28 @@ jobs:echo "✓ AppImage patched with .DirIcon and verified"# ── Upload release artifacts ──────────────────────────────────────────- - name: Upload macOS artifacts- if: matrix.platform == 'macos'- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2- with:- name: SocketSweep-macOS- path: src-tauri/target/release/bundle/dmg/*.dmg+ - name: Verify installer outputs+ shell: python+ env:+ INSTALLER_PATHS: ${{ matrix.installer_paths }}+ run: |+ import os+ from pathlib import Path- - name: Upload Linux artifacts- if: matrix.platform == 'linux'- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2- with:- name: SocketSweep-Linux- path: |- src-tauri/target/release/bundle/deb/*.deb- src-tauri/target/release/bundle/appimage/*.AppImage- src-tauri/target/release/bundle/appimage/*.AppImage.zsync-- - name: Upload Windows artifacts- if: matrix.platform == 'windows'+ for pattern in os.environ["INSTALLER_PATHS"].splitlines():+ files = list(Path.cwd().glob(pattern))+ if not files:+ raise SystemExit(f"Missing installer output: {pattern}")+ for path in files:+ if not path.is_file() or path.stat().st_size == 0:+ raise SystemExit(f"Empty or invalid installer output: {path}")++ - name: Upload installer artifactsuses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:- name: SocketSweep-Windows- path: |- src-tauri/target/release/bundle/msi/*.msi- src-tauri/target/release/bundle/nsis/*.exe+ name: ${{ matrix.installer_artifact }}+ path: ${{ matrix.installer_paths }}+ if-no-files-found: error# ── Create GitHub Release (only on tag push) ─────────────────────────────release: