From 4db04426486a16491cd3e8071990d96e8cb28cc3 Mon Sep 17 00:00:00 2001 From: Kyle Harding Date: Mon, 8 Apr 2024 10:39:56 -0400 Subject: [PATCH] initial commit Signed-off-by: Kyle Harding --- .github/workflows/ci.yaml | 22 ++++++++++++++++++++++ specs.sh | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .github/workflows/ci.yaml create mode 100755 specs.sh diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..2b9b449 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,22 @@ +name: CI + +on: + pull_request: + branches: + - "*" + push: + branches: + - master + - main + workflow_dispatch: + +jobs: + specs: + name: specs + # runs-on: actuated-arm64-2cpu-8gb + runs-on: actuated-arm64-2cpu-8gb + steps: + - uses: actions/checkout@v1 + - name: Check specs + run: | + ./specs.sh diff --git a/specs.sh b/specs.sh new file mode 100755 index 0000000..609d49a --- /dev/null +++ b/specs.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +echo Information on main disk +df -h / + +echo Memory info +free -h + +echo Total CPUs: +echo CPUs: $(nproc) + +echo CPU Model +cat /proc/cpuinfo |grep -i "Model"|head -n 2 + +echo Kernel and OS info +uname -a + +echo Generally, KVM should not be available unless specifically enabled +if ! [ -e /dev/kvm ]; then + echo "/dev/kvm does not exist" +else + echo "/dev/kvm exists" +fi + +echo OS +cat /etc/os-release + +echo Egress IP: +curl -s -L -S https://checkip.amazonaws.com + +echo Speed test of Internet +sudo pip install speedtest-cli +speedtest-cli + +echo Checking Docker +docker run alpine:latest cat /etc/os-release