Skip to content

Commit caf778d

Browse files
committed
GitHub Actions: refactor testing-on-openbsd.yml
add dependent libraries use readelf to display executable file info Signed-off-by: leleliu008 <[email protected]>
1 parent 54a22c4 commit caf778d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/testing-on-openbsd.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,23 @@ jobs:
3232
export AUTOCONF_VERSION=2.69
3333
export AUTOMAKE_VERSION=1.16
3434
35-
export CFLAGS='-I/usr/local/include -L/usr/local/lib'
35+
export CFLAGS='-I/usr/local/include'
36+
export LDFLAGS='-L/usr/local/lib'
3637
37-
if [ ! -f /usr/local/lib/libiconv.so ] ; then
38-
sudo ln -s /usr/local/lib/libiconv.so.* /usr/local/lib/libiconv.so
39-
fi
40-
41-
run sudo pkg_add automake%1.16 gmake
38+
run sudo pkg_add automake%1.16 gmake pkgconf jansson libyaml libxml libiconv
4239
4340
run cc --version
4441
4542
run ./autogen.sh
4643
run ./configure --prefix=/usr
4744
run gmake
4845
run sudo gmake install
49-
run file /usr/bin/ctags
46+
47+
run readelf -h /usr/bin/ctags
48+
run readelf -d /usr/bin/ctags
49+
5050
run ctags --version
51+
5152
# bugs to fix
5253
#run make check CI=gha+vagrant+openbsd
5354
run gmake roundtrip CI=gha+vagrant+openbsd

0 commit comments

Comments
 (0)