Check runner #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check runner | |
on: | |
workflow_dispatch: | |
jobs: | |
check-runners-host: | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
machine: [ ubuntu-20.04, ubuntu-22.04, e75, e150, e300, n150, n300 ] | |
name: Check runner | |
runs-on: ${{ matrix.machine }} | |
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 usage of landing folder | |
echo "Show file usage" | |
du -h --max-depth=1 | sort -rh | |
check-runners-docker: | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
machine: [ ubuntu-20.04, ubuntu-22.04, e75, e150, e300, n150, n300 ] | |
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: | |
- 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 |