Skip to content

Commit ec1e840

Browse files
authored
Merge pull request #354 from NixOS/ci
ci: test out-of-tree build
2 parents ce99c93 + 44fea0d commit ec1e840

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ jobs:
2020
autoconf --version
2121
- run: |
2222
./bootstrap.sh
23-
./configure --with-asan --with-ubsan
23+
mkdir build && cd build
24+
../configure --with-asan --with-ubsan
2425
make -j$(nproc) check

tests/endianness.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ for arch in ppc64 ppc64le; do
66
rm -rf ${SCRATCH}
77
mkdir -p ${SCRATCH}
88

9-
cp endianness/${arch}/main endianness/${arch}/libtest.so ${SCRATCH}/
9+
cp ${srcdir}/endianness/${arch}/main ${srcdir}/endianness/${arch}/libtest.so ${SCRATCH}/
1010

1111
rpath="${PWD}/${SCRATCH}"
1212

@@ -19,6 +19,6 @@ for arch in ppc64 ppc64le; do
1919
# check whether rpath is still present
2020
if ! ${PATCHELF} --print-rpath ${SCRATCH}/main-shrunk | grep -q "$rpath"; then
2121
echo "rpath was removed for ${arch}"
22-
exit 1
22+
exit 1
2323
fi
2424
done

0 commit comments

Comments
 (0)