fix(luarocks)

more general solution for archlinux too
This commit is contained in:
Jacob Heider 2024-05-09 18:14:50 -04:00
parent d713c05c69
commit 35af65401d
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -73,12 +73,7 @@ test:
gnu.org/gcc: '*' gnu.org/gcc: '*'
curl.se: '*' curl.se: '*'
script: script:
- run: EXTRA_ARGS="RT_LIBDIR=$(dirname $(find /usr/lib -name librt.a | head -n1))"
if: linux
- test "$(luarocks --version | awk 'NR==1 {print $NF}')" = "{{version.raw}}" - test "$(luarocks --version | awk 'NR==1 {print $NF}')" = "{{version.raw}}"
- luarocks install busted $EXTRA_ARGS - luarocks install busted $EXTRA_ARGS
env:
# some of lua components want this set to build, even though librt has been
# part of glibc since 2.35
linux/aarch64:
EXTRA_ARGS: RT_LIBDIR=/usr/lib/aarch64-linux-gnu
linux/x86-64:
EXTRA_ARGS: RT_LIBDIR=/usr/lib/x86_64-linux-gnu