Repository navigation
99 lines (77 loc) · 2.83 KB
/
Copy pathtest.yml
File metadata and controls
99 lines (77 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: test iperf3 release binaries for windows and osx
on:
workflow_dispatch:
permissions: {}
jobs:
test-osx-amd64:
runs-on: macos-15-large
permissions:
contents: read
steps:
- name: brew install
run: brew install coreutils
- name: test iperf3 version
run: |
wget -O ~/iperf3 "https://github.com/${{ github.repository }}/releases/latest/download/iperf3-amd64-osx-13"
chmod +x ~/iperf3
printf '\n%b\n\n' "🟦"
file ~/iperf3
printf '\n%b\n\n' "🟦"
otool -L ~/iperf3
printf '\n%b\n\n' "🟦"
~/iperf3 --version
- name: test iperf3 servers
run: |
~/$(wget -qO- https://db.iperf3serverlist.net/api/v1/db/public/shared-view/b111407c-43c4-48af-a828-301b698064a3/rows/export/csv | awk -F, 'NR>1 { print $1 }' | shuf -n1)
test-osx-arm64:
runs-on: macos-26
permissions:
contents: read
steps:
- name: brew install
run: brew install coreutils
- name: test iperf3 version
run: |
wget -O ~/iperf3 "https://github.com/${{ github.repository }}/releases/latest/download/iperf3-arm64-osx-14"
chmod +x ~/iperf3
printf '\n%b\n\n' "🟦"
file ~/iperf3
printf '\n%b\n\n' "🟦"
otool -L ~/iperf3
printf '\n%b\n\n' "🟦"
~/iperf3 --version
- name: test iperf3 servers
run: |
~/$(wget -qO- https://db.iperf3serverlist.net/api/v1/db/public/shared-view/b111407c-43c4-48af-a828-301b698064a3/rows/export/csv | awk -F, 'NR>1 { print $1 }' | shuf -n1)
test-windows:
runs-on: windows-latest
permissions:
contents: read
defaults:
run:
shell: bash
steps:
- name: test iperf3 version
run: |
curl -sL "https://github.com/${{ github.repository }}/releases/latest/download/iperf3-amd64-win.zip" -o iperf3.zip
unzip iperf3.zip
ls -la
chmod +x iperf3.exe
./iperf3.exe --version
- name: test iperf3 servers
run: ./$(curl -sL https://db.iperf3serverlist.net/api/v1/db/public/shared-view/b111407c-43c4-48af-a828-301b698064a3/rows/export/csv | awk -F, 'NR>1 { print $1 }' | shuf -n1)
test-windows-openssl:
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- name: Download iperf3
run: |
curl -sL "https://github.com/${{ github.repository }}/releases/latest/download/iperf3-amd64-win-openssl.zip" -o iperf3.zip
unzip iperf3.zip
ls -la
chmod +x iperf3.exe
./iperf3.exe --version
- name: test iperf3 servers
run: ./$(curl -sL https://db.iperf3serverlist.net/api/v1/db/public/shared-view/b111407c-43c4-48af-a828-301b698064a3/rows/export/csv | awk -F, 'NR>1 { print $1 }' | shuf -n1)