Skip to content
Draft
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/ur-check-network-cards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: UR - Check Network Cards

on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/ur-check-network-cards.yml'

jobs:
check-network:
strategy:
fail-fast: false
matrix:
runner: [UR_L0, UR_L0_BMG, UR_CUDA, UR_OPENCL, UR_NATIVE_CPU]
runs-on: ${{ matrix.runner }}
steps:
- name: Check network card
run: |
{
echo "=== Runner: ${{ matrix.runner }} ==="
echo ""
echo "=== lspci network devices ==="
lspci | grep -i -E 'network|ethernet' || true
echo ""
echo "=== Network interfaces ==="
ip link show
echo ""
echo "=== Interface details (ethtool) ==="
for iface in $(ls /sys/class/net/ | grep -v lo); do
echo "--- $iface ---"
ethtool -i "$iface" 2>/dev/null || true
done
} 2>&1 | tee network-info.txt

- name: Upload partial artifact
uses: actions/upload-artifact@v4

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
with:
name: network-info-${{ matrix.runner }}
path: network-info.txt

Check warning

Code scanning / zizmor

overly broad permissions Warning

overly broad permissions
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Comment on lines +10 to +75

merge-results:
needs: check-network
runs-on: ubuntu-latest
if: always()
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
with:
pattern: network-info-*
path: results

- name: Combine results
run: |
for dir in results/network-info-*/; do
runner=$(basename "$dir" | sed 's/network-info-//')
echo "========================================" >> combined-network-info.txt
echo "Runner: $runner" >> combined-network-info.txt
echo "========================================" >> combined-network-info.txt
cat "$dir/network-info.txt" >> combined-network-info.txt
echo "" >> combined-network-info.txt
done

- name: Upload combined artifact
uses: actions/upload-artifact@v4

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
with:
name: network-info-all-runners
path: combined-network-info.txt
Loading