From 41ad1ae6947930338dd71a2314d206a32e6993ad Mon Sep 17 00:00:00 2001 From: netkas Date: Tue, 17 Sep 2024 13:18:20 -0400 Subject: [PATCH] Updated GitHub workflow to dynamically find ncc's build output path. --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23a852d..f6d17c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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