Skip to content

Check runner

Check runner #10

Workflow file for this run

name: Check runner
on:
workflow_dispatch:
jobs:
check-runners-host:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
machine: [ ubuntu-20.04, ubuntu-22.04, e75, e150, e300, n150 ]
name: Check runner
runs-on: ${{ matrix.machine }}
steps:
- name: Fix ownership
run: |
sudo chown -R ubuntu:ubuntu $GITHUB_WORKSPACE || true
- 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 usage of landing folder
echo "Show file usage"
du -h --max-depth=1 | sort -rh
check-runners-docker:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
machine: [ ubuntu-20.04, ubuntu-22.04, e75, e150, e300, n150 ]
image: [ tt-umd-ci-ubuntu-22.04, tt-umd-ci-ubuntu-20.04 ]
name: Check runner docker
needs: check-runners-host
runs-on: ${{ matrix.machine }}
container:
image: ghcr.io/${{ github.repository }}/${{ matrix.image }}:latest
# options: --user root
volumes:
- /dev/hugepages:/dev/hugepages
- /dev/hugepages-1G:/dev/hugepages-1G
steps:
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "work-dir=$(pwd)" >> "$GITHUB_OUTPUT"
echo "build-output-dir=$(pwd)/build" >> "$GITHUB_OUTPUT"
echo "install-output-dir=$(pwd)/install" >> "$GITHUB_OUTPUT"
- name: Git add safe dir for base rpo and submodules
run: |
# Mark the main repository as safe
git config --global --add safe.directory "$(pwd)"
# Iterate over all submodules and mark them as safe
git submodule foreach 'git config --global --add safe.directory "$toplevel/$sm_path"'
- uses: actions/checkout@v4
with:
submodules: recursive
- 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 usage of landing folder
echo "Show file usage"
du -h --max-depth=1 | sort -rh