Updated GitHub workflow to dynamically find ncc's build output path.

This commit is contained in:
netkas 2024-09-17 13:18:20 -04:00
parent 93b06e8b00
commit 41ad1ae694

View file

@ -42,7 +42,13 @@ jobs:
git clone https://git.n64.cc/nosial/ncc.git
cd ncc
make redist
php build/src/INSTALL --auto --install-composer
# Find the dynamically generated NCC directory
NCC_DIR=$(find build/ -type d -name "ncc_*" | head -n 1)
if [ -z "$NCC_DIR" ]; then
echo "NCC build directory not found"
exit 1
fi
php "$NCC_DIR/INSTALL" --auto --install-composer
cd .. && rm -rf ncc
- name: Build project