Skip to content

Runner display

Runner display #71

name: Runner display
on:
schedule:
- cron: '0 15 * * *'
workflow_dispatch:
jobs:
runner-info:
strategy:
matrix:
os: [ ubuntu-latest, ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, windows-latest, windows-2022, windows-2019, macos-latest, macos-12, macos-13, macos-14 ]
# os: [ ubuntu-latest, ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, windows-latest, windows-2022, windows-2019, macos-latest, macos-latest-large, macos-latest-xlarge, macos-11, macos-12, macos-12-large, macos-13, macos-13-large, macos-13-xlarge, macos-14, macos-14-large, macos-14-xlarge ]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Display OS info (Windows)
if: startsWith(matrix.os, 'windows') == true
run: |
$OS_INFO=python -c "import platform; print(platform.system())"
$RELEASE_INFO=python -c "import platform; print(platform.release())"
$VERSION_INFO=python -c "import platform; print(platform.version())"
$MACHINE_INFO=python -c "import platform; print(platform.machine())"
$PROCESSOR_INFO=python -c "import platform; print(platform.processor())"
echo "| Runner | OS | Release | Version | Machine | Processor |" >> $env:GITHUB_STEP_SUMMARY
echo "| --- | --- | --- | --- | --- | --- |" >> $env:GITHUB_STEP_SUMMARY
echo "| ${{ matrix.os }} | $OS_INFO | $RELEASE_INFO | $VERSION_INFO | $MACHINE_INFO | $PROCESSOR_INFO |" >> $env:GITHUB_STEP_SUMMARY
- name: Display OS info (macOS, Linux)
if: startsWith(matrix.os, 'windows') == false
run: |
OS_INFO=$(python -c "import platform; print(platform.system())")
RELEASE_INFO=$(python -c "import platform; print(platform.release())")
VERSION_INFO=$(python -c "import platform; print(platform.version())")
MACHINE_INFO=$(python -c "import platform; print(platform.machine())")
PROCESSOR_INFO=$(python -c "import platform; print(platform.processor())")
echo "| Runner | OS | Release | Version | Machine | Processor |" >> $GITHUB_STEP_SUMMARY
echo "| --- | --- | --- | --- | --- | --- |" >> $GITHUB_STEP_SUMMARY
echo "| ${{ matrix.os }} | $OS_INFO | $RELEASE_INFO | $VERSION_INFO | $MACHINE_INFO | $PROCESSOR_INFO |" >> $GITHUB_STEP_SUMMARY