Updated GitHub workflow to dynamically find ncc's build output path.
This commit is contained in:
parent
93b06e8b00
commit
41ad1ae694
1 changed files with 7 additions and 1 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue