Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
everdrone committed Jun 28, 2021
1 parent c6a9385 commit 5b20462
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 66 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/distcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Distcheck

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
- name: dependencies
run: sudo apt-get install autoconf-archive
- name: autogen.sh
run: ./autogen.sh
- name: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check
- name: sudo make distcheck
run: sudo make distcheck
60 changes: 60 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
on:
push:
tags:
- 'v*'

name: Create Release

jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: uraimo/[email protected]
name: build aarch64
id: runcmd
with:
arch: aarch64
distro: ubuntu18.04
setup: |
mkdir -p "${PWD}/artifacts"
dockerRunArgs: |
--volume "${PWD}/artifacts:/artifacts"
shell: /bin/bash
install: |
apt-get update -y
apt-get install -y build-essential autoconf-archive dh-make debhelper devscripts fakeroot lintian pbuilder
run: |
./autogen.sh
./configure
make deb
cp jnfo_*.deb /artifacts
- name: deb file path
run: echo "::set-output name=file_path::$(readlink -f ${PWD}/artifacts/jnfo_*.deb)"
shell: bash
id: deb_file_path
- name: deb file name
run: echo "::set-output name=file_name::$(basename ${PWD}/artifacts/jnfo_*.deb)"
shell: bash
id: deb_file_name
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above
asset_path: ${{ steps.deb_file_path.outputs.file_path }}
asset_name: ${{ steps.deb_file_name.outputs.file_name }}
asset_content_type: application/vnd.debian.binary-package
132 changes: 66 additions & 66 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,47 +38,47 @@ jnfo [options]
```yml
# sudo jnfo -s
Thermal:
Average: 31.9 C
Max: 36.0 C
Average: 31.7 C
Max: 36.0 C
CPU:
Avg Freq: 1.479 GHz
Avg Freq: 1.479 GHz
Avg Speed: 100%
GPU:
Freq: 921.600 MHz
Speed: 100%
Freq: 76.800 MHz
Speed: 8%
Memory:
RAM: 33%
Swap: 0%
RAM: 33%
Swap: 0%
NVMap: 0%
Power:
Total: 2938 mW
Total: 2078 mW
```
```yml
# sudo jnfo
Thermal:
Average: 33.4 C
Max: 38.0 C
Average: 31.6 C
Max: 36.0 C
Sensors:
- Name: AO
Temp: 38.0 C
Temp: 36.0 C
- Name: CPU
Temp: 35.0 C
Temp: 32.5 C
- Name: GPU
Temp: 31.5 C
Temp: 30.5 C
- Name: PLL
Temp: 29.5 C
Temp: 27.5 C
- Name: PMIC
Temp: 100.0 C
- Name: thermal
Temp: 32.8 C
Temp: 31.5 C
CPU:
Avg Freq: 1.479 GHz
Avg Freq: 1.479 GHz
Avg Speed: 100%
Cores:
- Name: cpu0
- Name: cpu0
Online: true
Speed: 100%
Speed: 100%
CPUInfo Freq:
Min: 102.000 MHz
Max: 1.479 GHz
Expand All @@ -88,13 +88,13 @@ CPU:
Max: 1.479 GHz
Cur: 1.479 GHz
Idle State:
- Name: WFI
- Name: WFI
Disable: false
- Name: c7
- Name: c7
Disable: false
- Name: cpu1
- Name: cpu1
Online: true
Speed: 100%
Speed: 100%
CPUInfo Freq:
Min: 102.000 MHz
Max: 1.479 GHz
Expand All @@ -104,13 +104,13 @@ CPU:
Max: 1.479 GHz
Cur: 1.479 GHz
Idle State:
- Name: WFI
- Name: WFI
Disable: false
- Name: c7
- Name: c7
Disable: false
- Name: cpu2
- Name: cpu2
Online: true
Speed: 100%
Speed: 100%
CPUInfo Freq:
Min: 102.000 MHz
Max: 1.479 GHz
Expand All @@ -120,13 +120,13 @@ CPU:
Max: 1.479 GHz
Cur: 1.479 GHz
Idle State:
- Name: WFI
- Name: WFI
Disable: false
- Name: c7
- Name: c7
Disable: false
- Name: cpu3
- Name: cpu3
Online: true
Speed: 100%
Speed: 100%
CPUInfo Freq:
Min: 102.000 MHz
Max: 1.479 GHz
Expand All @@ -136,14 +136,14 @@ CPU:
Max: 1.479 GHz
Cur: 1.479 GHz
Idle State:
- Name: WFI
- Name: WFI
Disable: false
- Name: c7
- Name: c7
Disable: false
GPU:
Load: 0
Load: 0
Railgate: false
Speed: 8%
Speed: 8%
Freq:
Min: 76.800 MHz
Max: 921.600 MHz
Expand All @@ -156,43 +156,43 @@ GPU:
Clients Total: 0 B
Memory:
RAM:
Total: 4.06 GB
Free: 2.73 GB
Cached: 663.71 MB
Usage: 33%
Total: 4.06 GB
Free: 2.73 GB
Cached: 664.81 MB
Usage: 33%
Swap:
Total: 2.03 GB
Free: 2.03 GB
Total: 2.03 GB
Free: 2.03 GB
Cached: 0 B
Usage: 0%
Usage: 0%
NVMap:
Total: 258.05 kB
Free: 258.05 kB
Used: 0 B
Usage: 0%
Total: 258.05 kB
Free: 258.05 kB
Used: 0 B
Usage: 0%
Power:
- Name: POM_5V_IN
- Name: POM_5V_IN
Critical Current Limit: 32760 mA
Critical Power Limit: 163013 mW
Current Input: 432 mA
Current Trigger Input: 432 mA
Power Input: 2146 mW
Power Trigger Input: 2146 mW
Voltage Input: 4968 mV
- Name: POM_5V_GPU
Critical Power Limit: 163800 mW
Current Input: 312 mA
Current Trigger Input: 320 mA
Power Input: 1600 mW
Power Trigger Input: 1600 mW
Voltage Input: 5000 mV
- Name: POM_5V_GPU
Critical Current Limit: 32760 mA
Critical Power Limit: 162751 mW
Current Input: 0 mA
Current Trigger Input: 0 mA
Power Input: 0 mW
Power Trigger Input: 0 mW
Voltage Input: 4968 mV
- Name: POM_5V_CPU
Critical Power Limit: 163537 mW
Current Input: 0 mA
Current Trigger Input: 0 mA
Power Input: 0 mW
Power Trigger Input: 0 mW
Voltage Input: 4992 mV
- Name: POM_5V_CPU
Critical Current Limit: 32760 mA
Critical Power Limit: 162751 mW
Current Input: 160 mA
Current Trigger Input: 160 mA
Power Input: 794 mW
Power Trigger Input: 755 mW
Voltage Input: 4968 mV
Critical Power Limit: 163537 mW
Current Input: 104 mA
Current Trigger Input: 112 mA
Power Input: 558 mW
Power Trigger Input: 558 mW
Voltage Input: 4984 mV
```

0 comments on commit 5b20462

Please sign in to comment.