Skip to content

Commit 6b55128

Browse files
committed
Test github actions
1 parent d3e0c5e commit 6b55128

File tree

2 files changed

+45
-42
lines changed

2 files changed

+45
-42
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -60,26 +60,8 @@ jobs:
6060
- name: List of all installed packages
6161
run: dpkg -l | cat || true
6262

63-
- name: Show system status
64-
run: |
65-
cat /etc/debian_version
66-
lsb_release -a
67-
yacc --version | head -n 1
68-
gcc --version | head -n 1
69-
g++ --version | head -n 1
70-
make --version | head -n 1
71-
git --version | head -n 1
72-
gawk --version | head -n 1
73-
bash --version | head -n 1
74-
uname -a
75-
id -a
76-
echo "CWD is `pwd`"
77-
echo "PATH is $PATH"
78-
echo "Hostname is `hostname`"
79-
sudo lscpu || true
80-
uptime
81-
sudo /sbin/ip a || true
82-
df -h .
63+
- name: Show build system info
64+
run: bash build/show-sys-info
8365

8466
- name: Show native SDL2 status
8567
run: |
@@ -132,9 +114,6 @@ jobs:
132114
if: env.should_deploy == 'true'
133115
run: ls -l build/bin/*.win32
134116

135-
- name: Uptime/load so far
136-
run: uptime
137-
138117
- name: Deployment
139118
if: env.should_deploy == 'true'
140119
run: |
@@ -187,22 +166,8 @@ jobs:
187166
- name: Install build/deployment dependencies
188167
run: build/install-dependencies-osx.sh
189168

190-
- name: Show system status
191-
run: |
192-
sw_vers || true
193-
gcc --version | head -n 1
194-
g++ --version | head -n 1
195-
make --version | head -n 1
196-
git --version | head -n 1
197-
bash --version | head -n 1
198-
uname -a
199-
id -a
200-
echo "CWD is `pwd`"
201-
echo "PATH is $PATH"
202-
echo "Hostname is `hostname`"
203-
uptime
204-
ifconfig || true
205-
df -h .
169+
- name: Show build system info
170+
run: bash build/show-sys-info
206171

207172
- name: Show Mac SDL2 status
208173
run: |
@@ -218,9 +183,6 @@ jobs:
218183
- name: List of result binaries for Mac (x86 native target)
219184
run: ls -l build/bin/*.native
220185

221-
- name: Uptime/load so far
222-
run: uptime
223-
224186
- name: Deployment
225187
if: env.should_deploy == 'true'
226188
run: |

build/show-sys-info

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
3+
OUT1="/tmp/sysinfo-output-$$-$RANDOM.stdout"
4+
OUT2="/tmp/sysinfo-output-$$-$RANDOM.stderr"
5+
6+
echo 'cat /etc/debian_version
7+
lsb_release -a
8+
sw_vers
9+
lscpu
10+
sysctl -n machdep.cpu.brand_string
11+
sysctl -n machdep.cpu.core_count
12+
sysctl -n machdep.cpu.thread_count
13+
uname -a
14+
id -a
15+
echo $PATH
16+
yacc --version | head -n 1
17+
gcc --version | head -n 1
18+
g++ --version | head -n 1
19+
x86_64-w64-mingw32-gcc --version | head -n 1
20+
i686-w64-mingw32-gcc --version | head -n 1
21+
make --version | head -n 1
22+
git --version | head -n 1
23+
gawk --version | head -n 1
24+
awk --version | head -n 1
25+
bash --version | head -n 1
26+
pwd
27+
hostname
28+
/sbin/ip a
29+
ifconfig
30+
uptime
31+
df -h .' | while read line ; do
32+
rm -f "$OUT1" "$OUT2"
33+
eval $line </dev/zero >$OUT1 2>$OUT2
34+
if [ -s "$OUT1" ]; then
35+
echo "$line"
36+
cat "$OUT1" | sed 's/^/\t/'
37+
fi
38+
rm -f "$OUT1" "$OUT2"
39+
done
40+
41+
exit 0

0 commit comments

Comments
 (0)