ci: upload detailed diagnostics as artifacts (pkg-config, cargo metadata/tree)
This commit is contained in:
parent
4ec18ab118
commit
a96cd00b71
1 changed files with 40 additions and 27 deletions
67
.github/workflows/ci.yml
vendored
67
.github/workflows/ci.yml
vendored
|
|
@ -42,43 +42,56 @@ jobs:
|
||||||
- name: Debug: pkg-config & libusb (Ubuntu)
|
- name: Debug: pkg-config & libusb (Ubuntu)
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: |
|
run: |
|
||||||
echo "=== PKG_CONFIG & libusb diagnostic ==="
|
mkdir -p ci-diagnostics
|
||||||
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
|
echo "=== PKG_CONFIG & libusb diagnostic ===" | tee ci-diagnostics/pkgconfig-ubuntu.txt
|
||||||
which pkg-config || true
|
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" | tee -a ci-diagnostics/pkgconfig-ubuntu.txt
|
||||||
pkg-config --version || true
|
which pkg-config || true | tee -a ci-diagnostics/pkgconfig-ubuntu.txt
|
||||||
pkg-config --modversion libusb-1.0 || true
|
pkg-config --version || true | tee -a ci-diagnostics/pkgconfig-ubuntu.txt
|
||||||
pkg-config --cflags --libs libusb-1.0 || true
|
pkg-config --modversion libusb-1.0 || true | tee -a ci-diagnostics/pkgconfig-ubuntu.txt
|
||||||
echo "\nFiles under /usr/lib*/pkgconfig (matching libusb)"
|
pkg-config --cflags --libs libusb-1.0 || true | tee -a ci-diagnostics/pkgconfig-ubuntu.txt
|
||||||
ls -la /usr/lib*/pkgconfig | grep libusb || true
|
echo "\nFiles under /usr/lib*/pkgconfig (matching libusb)" | tee -a ci-diagnostics/pkgconfig-ubuntu.txt
|
||||||
echo "\nList files from libusb-dev package (first 50 lines):"
|
ls -la /usr/lib*/pkgconfig | grep libusb || true | tee -a ci-diagnostics/pkgconfig-ubuntu.txt
|
||||||
dpkg -L libusb-1.0-0-dev | head -n 50 || true
|
echo "\nList files from libusb-dev package (first 50 lines):" | tee -a ci-diagnostics/pkgconfig-ubuntu.txt
|
||||||
echo "\nldconfig output for libusb (if available):"
|
dpkg -L libusb-1.0-0-dev | head -n 50 || true | tee -a ci-diagnostics/pkgconfig-ubuntu.txt
|
||||||
ldconfig -p | grep libusb || true
|
echo "\nldconfig output for libusb (if available):" | tee -a ci-diagnostics/pkgconfig-ubuntu.txt
|
||||||
|
ldconfig -p | grep libusb || true | tee -a ci-diagnostics/pkgconfig-ubuntu.txt
|
||||||
|
|
||||||
- name: Debug: pkg-config & libusb (macOS)
|
- name: Debug: pkg-config & libusb (macOS)
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
run: |
|
run: |
|
||||||
echo "=== PKG_CONFIG & libusb diagnostic (macOS) ==="
|
mkdir -p ci-diagnostics
|
||||||
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
|
echo "=== PKG_CONFIG & libusb diagnostic (macOS) ===" | tee ci-diagnostics/pkgconfig-macos.txt
|
||||||
which pkg-config || true
|
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" | tee -a ci-diagnostics/pkgconfig-macos.txt
|
||||||
pkg-config --version || true
|
which pkg-config || true | tee -a ci-diagnostics/pkgconfig-macos.txt
|
||||||
pkg-config --modversion libusb-1.0 || true
|
pkg-config --version || true | tee -a ci-diagnostics/pkgconfig-macos.txt
|
||||||
ls -la /opt/homebrew/lib/pkgconfig /usr/local/lib/pkgconfig || true
|
pkg-config --modversion libusb-1.0 || true | tee -a ci-diagnostics/pkgconfig-macos.txt
|
||||||
brew list --versions libusb || true
|
ls -la /opt/homebrew/lib/pkgconfig /usr/local/lib/pkgconfig || true | tee -a ci-diagnostics/pkgconfig-macos.txt
|
||||||
|
brew list --versions libusb || true | tee -a ci-diagnostics/pkgconfig-macos.txt
|
||||||
|
|
||||||
- name: Debug: Cargo.lock (key deps)
|
- name: Debug: Cargo.lock (key deps)
|
||||||
run: |
|
run: |
|
||||||
echo "=== Cargo.lock entries for key crates ==="
|
mkdir -p ci-diagnostics
|
||||||
grep -nE 'bdk|bip39|bip32|bitcoin|rusqlite|hidapi|aes-gcm|rusqlite' Cargo.lock || true
|
echo "=== Cargo.lock entries for key crates ===" > ci-diagnostics/cargo-lock-entries.txt
|
||||||
|
grep -nE 'bdk|bip39|bip32|bitcoin|rusqlite|hidapi|aes-gcm|rusqlite' Cargo.lock >> ci-diagnostics/cargo-lock-entries.txt || true
|
||||||
|
|
||||||
- name: Debug: cargo metadata & dependency tree
|
- name: Debug: cargo metadata & dependency tree
|
||||||
run: |
|
run: |
|
||||||
echo "RUSTC:" && rustc --version || true
|
mkdir -p ci-diagnostics
|
||||||
echo "CARGO:" && cargo --version || true
|
echo "RUSTC:" > ci-diagnostics/cargo-metadata.txt
|
||||||
echo "\n=== cargo metadata (top-level) ==="
|
rustc --version >> ci-diagnostics/cargo-metadata.txt || true
|
||||||
cargo metadata --no-deps --format-version 1 || true
|
echo "CARGO:" >> ci-diagnostics/cargo-metadata.txt
|
||||||
echo "\n=== cargo tree (dependencies, depth=2) ==="
|
cargo --version >> ci-diagnostics/cargo-metadata.txt || true
|
||||||
cargo tree --edges normal --depth 2 || true
|
echo "\n=== cargo metadata (top-level) ===" >> ci-diagnostics/cargo-metadata.txt
|
||||||
|
cargo metadata --no-deps --format-version 1 >> ci-diagnostics/cargo-metadata.txt || true
|
||||||
|
echo "\n=== cargo tree (dependencies, depth=2) ===" >> ci-diagnostics/cargo-metadata.txt
|
||||||
|
cargo tree --edges normal --depth 2 >> ci-diagnostics/cargo-metadata.txt || true
|
||||||
|
|
||||||
|
- name: Upload CI diagnostics (always)
|
||||||
|
if: always()
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: cryptec-ci-diagnostics
|
||||||
|
path: ci-diagnostics/**
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --workspace --verbose
|
run: cargo build --workspace --verbose
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue