File tree Expand file tree Collapse file tree 2 files changed +9
-21
lines changed Expand file tree Collapse file tree 2 files changed +9
-21
lines changed Original file line number Diff line number Diff line change 68
68
shell : bash
69
69
run : |
70
70
71
- # determine the access point name
72
- # based on the device class
73
- # AX - 6GHz
74
- # AC600 - 5GHz
75
- # AC - 2.4GHz
76
- case "${{ matrix.json.device_class }}" in
77
- AX) ACCESS_POINT="GOSTJE60" ;;
78
- AC600) ACCESS_POINT="GOSTJE50" ;;
79
- *) ACCESS_POINT="GOSTJE24" ;;
80
- esac
71
+ ACCESS_POINT="GOSTJE60"
81
72
82
73
# generate the YAML file
83
74
# for the wireless device
92
83
renderer: networkd
93
84
wifis:
94
85
${{ env.DEVICE }}:
95
- addresses:
96
- - "10.0.50.50/24"
97
- nameservers:
98
- addresses:
99
- - 9.9.9.9
100
- - 1.1.1.1
101
- dhcp4: false
102
- dhcp6: false
86
+ dhcp4: true
87
+ dhcp6: true
103
88
macaddress: "${{ matrix.json.serial }}"
104
89
access-points:
105
90
"${ACCESS_POINT}":
@@ -125,18 +110,21 @@ jobs:
125
110
while true; do
126
111
# nmcli -t -f NAME connection show --active | grep ${DEVICE}
127
112
CONNECTION=$(ssh ci@${{ env.IP_ADDR }} "networkctl | grep ${{ env.DEVICE }} | grep routable || true")
128
- if [[ -n "${CONNECTION}" ]]; then
113
+ CLIENTIP=$(ssh ci@${{ env.IP_ADDR }} "ip -4 addr show ${{ env.DEVICE }} | grep -oP '(?<=inet\s)\d+(\.\d+){3}' || true")
114
+ # check if the connection is routable
115
+ if [[ -n "${CONNECTION}" && -n "${CLIENTIP}" ]]; then
129
116
break
130
117
fi
131
118
sleep 2
132
119
done
120
+ echo "CLIENTIP=${CLIENTIP}" >> $GITHUB_ENV
133
121
134
122
- name : " Do some perf testing"
135
123
shell : bash
136
124
run : |
137
125
138
126
mkdir -p test
139
- 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")
127
+ 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")
140
128
mbits=$(echo $numbers | LC_ALL=C awk '{$1/=1048576;printf "%.0f Mbps\n",$1}')
141
129
echo "|${{ matrix.json.name }}|${{ matrix.json.device_type }}| ${{ matrix.json.serial }} | ${{ matrix.json.device_class }} | ${mbits} |" > test/ci@${{ env.DEVICE }}.iperf
142
130
Original file line number Diff line number Diff line change @@ -20,5 +20,5 @@ It prepares several data exchange files.
20
20
| 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 > |
21
21
| 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 >|
22
22
| 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 >|
23
- | 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 >|
23
+ | 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 >|
24
24
| 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 >|
You can’t perform that action at this time.
0 commit comments