GitHub Workflow: check Win module paths on runtime

JACK (and other modules) may or may not be present depending on previous
workflows' steps. Therefore do the check everytime the action is run -
since the MSYS may be cached as well, this is done in bashrc.
This commit is contained in:
Martin Pulec
2020-04-08 15:04:44 +02:00
parent 0adaf05400
commit d4049ce896
3 changed files with 9 additions and 9 deletions

View File

@@ -8,26 +8,26 @@ export PATH=/mingw64/bin:/usr/local/bin:$PATH
export CPATH=/usr/local/include
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/mingw64/lib/pkgconfig
export LIBRARY_PATH=/usr/local/lib
EOF
CUDA_D=$(ls -d /c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/*)
if test -d "$CUDA_D"; then
echo "export CPATH=\$CPATH:'$CUDA_D/include'" >> ~/.bash_profile
export CPATH=$CPATH:$CUDA_D/include
fi
if test -d /c/Program\ Files/NewTek; then
NDI_D=$(ls -d /c/Program\ Files/NewTek/*SDK)
echo "export CPATH=\$CPATH:'$NDI_D/Include'" >> ~/.bash_profile
echo "export LIBRARY_PATH=\$LIBRARY_PATH:'$NDI_D/Lib/x64'" >> ~/.bash_profile
export CPATH=$CPATH:$NDI_D/Include
export LIBRARY_PATH=$LIBRARY_PATH:$NDI_D/Lib/x64
fi
JACK_D=/c/Program\ Files\ \(x86\)/Jack
if test -d "$JACK_D"; then
echo "export CPATH=\$CPATH:'$JACK_D/includes'" >> ~/.bash_profile
echo "export LIBRARY_PATH=\$LIBRARY_PATH:'$JACK_D/lib'" >> ~/.bash_profile
export CPATH=$CPATH:$JACK_D/includes
export LIBRARY_PATH=$LIBRARY_PATH:$JACK_D/lib
fi
echo cd `cygpath $GITHUB_WORKSPACE` >> ~/.bash_profile
cd `cygpath $GITHUB_WORKSPACE`
EOF
. ~/.bash_profile