You've already forked armbian.github.io
mirror of
https://github.com/armbian/armbian.github.io.git
synced 2026-01-06 11:42:20 -08:00
Using DHCP mode for client rather then fixed, adjust README
This commit is contained in:
28
.github/workflows/usb-wireless-autotest.yml
vendored
28
.github/workflows/usb-wireless-autotest.yml
vendored
@@ -68,16 +68,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
# determine the access point name
|
||||
# based on the device class
|
||||
# AX - 6GHz
|
||||
# AC600 - 5GHz
|
||||
# AC - 2.4GHz
|
||||
case "${{ matrix.json.device_class }}" in
|
||||
AX) ACCESS_POINT="GOSTJE60" ;;
|
||||
AC600) ACCESS_POINT="GOSTJE50" ;;
|
||||
*) ACCESS_POINT="GOSTJE24" ;;
|
||||
esac
|
||||
ACCESS_POINT="GOSTJE60"
|
||||
|
||||
# generate the YAML file
|
||||
# for the wireless device
|
||||
@@ -92,14 +83,8 @@ jobs:
|
||||
renderer: networkd
|
||||
wifis:
|
||||
${{ env.DEVICE }}:
|
||||
addresses:
|
||||
- "10.0.50.50/24"
|
||||
nameservers:
|
||||
addresses:
|
||||
- 9.9.9.9
|
||||
- 1.1.1.1
|
||||
dhcp4: false
|
||||
dhcp6: false
|
||||
dhcp4: true
|
||||
dhcp6: true
|
||||
macaddress: "${{ matrix.json.serial }}"
|
||||
access-points:
|
||||
"${ACCESS_POINT}":
|
||||
@@ -125,18 +110,21 @@ jobs:
|
||||
while true; do
|
||||
# nmcli -t -f NAME connection show --active | grep ${DEVICE}
|
||||
CONNECTION=$(ssh ci@${{ env.IP_ADDR }} "networkctl | grep ${{ env.DEVICE }} | grep routable || true")
|
||||
if [[ -n "${CONNECTION}" ]]; then
|
||||
CLIENTIP=$(ssh ci@${{ env.IP_ADDR }} "ip -4 addr show ${{ env.DEVICE }} | grep -oP '(?<=inet\s)\d+(\.\d+){3}' || true")
|
||||
# check if the connection is routable
|
||||
if [[ -n "${CONNECTION}" && -n "${CLIENTIP}" ]]; then
|
||||
break
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
echo "CLIENTIP=${CLIENTIP}" >> $GITHUB_ENV
|
||||
|
||||
- name: "Do some perf testing"
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
mkdir -p test
|
||||
numbers=$(ssh ci@${{ env.IP_ADDR }} "iperf3 -R -c 10.0.60.10 -B 10.0.50.50 -t 5 -J | jq '.intervals[] .sum .bits_per_second' | LC_ALL=C datamash median 1 | cut -d"-" -f2")
|
||||
numbers=$(ssh ci@${{ env.IP_ADDR }} "iperf3 -R -c 10.0.60.10 -B ${{ env.CLIENTIP }} -t 5 -J | jq '.intervals[] .sum .bits_per_second' | LC_ALL=C datamash median 1 | cut -d"-" -f2")
|
||||
mbits=$(echo $numbers | LC_ALL=C awk '{$1/=1048576;printf "%.0f Mbps\n",$1}')
|
||||
echo "|${{ matrix.json.name }}|${{ matrix.json.device_type }}| ${{ matrix.json.serial }} | ${{ matrix.json.device_class }} | ${mbits} |" > test/ci@${{ env.DEVICE }}.iperf
|
||||
|
||||
|
||||
@@ -20,5 +20,5 @@ It prepares several data exchange files.
|
||||
| Compare all mirrors content and generate redirector configs | <a href=https://github.com/armbian/armbian.github.io/actions/workflows/generate-redirector-config.yml><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/armbian/armbian.github.io/generate-redirector-config.yml?logo=githubactions&label=Status&style=for-the-badge&branch=main"></a> |
|
||||
| Update download JSON index|<a href=https://github.com/armbian/armbian.github.io/actions/workflows/generate-web-index.yml><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/armbian/armbian.github.io/generate-web-index.yml?logo=githubactions&label=Status&style=for-the-badge&branch=main"></a>|
|
||||
| Pull excerpts from Armbian Jira|<a href=https://github.com/armbian/armbian.github.io/actions/workflows/generate-jira-excerpt.yml><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/armbian/armbian.github.io/generate-jira-excerpt.yml?logo=githubactions&label=Status&style=for-the-badge&branch=main"></a>|
|
||||
| USB wireless performance testig |<a href=https://github.com/armbian/armbian.github.io/actions/workflows/usb-wireless-autotest.yml><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/armbian/armbian.github.io/usb-wireless-autotest.yml?logo=githubactions&label=Status&style=for-the-badge&branch=main"></a>|
|
||||
| Wireless performance testig |<a href=https://github.com/armbian/armbian.github.io/actions/workflows/usb-wireless-autotest.yml><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/armbian/armbian.github.io/usb-wireless-autotest.yml?logo=githubactions&label=Status&style=for-the-badge&branch=main"></a>|
|
||||
| Mirror repository artifacts to our CDN |<a href=https://github.com/armbian/armbian.github.io/actions/workflows/mirror.yml><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/armbian/armbian.github.io/mirror.yml?logo=githubactions&label=Status&style=for-the-badge&branch=main"></a>|
|
||||
|
||||
Reference in New Issue
Block a user