CI: Move linux unit test to separate build step

This commit is contained in:
Megamouse 2025-04-29 21:14:09 +02:00
parent b25276deec
commit d504e3220c
6 changed files with 85 additions and 20 deletions

View file

@ -1,6 +1,27 @@
#!/bin/sh -ex
cd build || exit 1
RPCS3_DIR=$(pwd)
echo "pwd = $RPCS3_DIR"
ls -la -F
# If we're building using a CI, let's use the runner's directory
if [ -n "$BUILDDIR" ]; then
BUILD_DIR="$BUILDDIR"
else
BUILD_DIR="$RPCS3_DIR/build"
fi
echo "BUILD_DIR = $BUILD_DIR"
cd "$BUILD_DIR" || exit 1
echo "pwd = $(pwd)"
ls -la -F
echo "cd $RPCS3_DIR/rpcs3"
cd "$RPCS3_DIR/rpcs3"
echo "pwd = $(pwd)"
ls -la -F
CPU_ARCH="${1:-x86_64}"