Skip to content

Commit

Permalink
Check runners
Browse files Browse the repository at this point in the history
  • Loading branch information
vmilosevic authored Sep 17, 2024
1 parent be4f974 commit 44f71d8
Showing 1 changed file with 59 additions and 4 deletions.
63 changes: 59 additions & 4 deletions .github/workflows/check-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
push:

jobs:
check-runners:

check-runners-host:
timeout-minutes: 10
strategy:
matrix:
Expand All @@ -19,9 +20,63 @@ jobs:
name: Check runner
runs-on: ${{ matrix.build.runs-on }}

# container:
# image: ghcr.io/tenstorrent/tt-mlir/tt-mlir-base-ubuntu-22-04:latest
# options: --user root
steps:
- uses: actions/checkout@v4

- name: Print machine info
run: |
# Print machine name
echo "Machine Name: $(hostname)"
# Print OS information
echo "Operating System: $(lsb_release -d | cut -f2-)"
echo "Kernel Version: $(uname -r)"
echo "Architecture: $(uname -m)"
# Print current user
echo "Current User: $(whoami)"
# Print CPU information
echo "CPU Information:"
lscpu | grep 'Model name'
lscpu | grep 'Architecture'
# Print Memory information
echo "Memory Information:"
free -h
# Print Disk usage
echo "Disk Usage:"
df -h
# Print Network Interfaces
echo "Network Interfaces:"
ip addr show
# Optional: Print hardware details using lshw (requires sudo)
if command -v lshw &> /dev/null; then
echo "Hardware Details (requires sudo):"
sudo lshw -short
else
echo "lshw command not found. Install lshw for detailed hardware info."
fi
check-runners-docker:
timeout-minutes: 10
strategy:
matrix:
build: [
{runs-on: ubuntu-latest},
{runs-on: n300},
{runs-on: n150},
]

name: Check runner
runs-on: ${{ matrix.build.runs-on }}

container:
image: ghcr.io/tenstorrent/tt-mlir/tt-mlir-base-ubuntu-22-04:latest
options: --user root

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 44f71d8

Please sign in to comment.