Update build.yml

This commit is contained in:
Jay Lee
2022-03-02 09:19:45 -05:00
committed by GitHub
parent f8b00b92b4
commit c64730e07b

View File

@ -417,7 +417,10 @@ jobs:
run: | run: |
export gampath="./dist/gam" export gampath="./dist/gam"
mkdir -p -v "${gampath}" mkdir -p -v "${gampath}"
if [[ "${RUNNER_OS}" == "macOS" ]]; then
export gampath=$($PYTHON -c "import os; print(os.path.realpath('$gampath'))") export gampath=$($PYTHON -c "import os; print(os.path.realpath('$gampath'))")
else
export gampath=$(realpath "${gampath}")
export gam="${gampath}/gam" export gam="${gampath}/gam"
echo "gampath=${gampath}" >> $GITHUB_ENV echo "gampath=${gampath}" >> $GITHUB_ENV
echo "gam=${gam}" >> $GITHUB_ENV echo "gam=${gam}" >> $GITHUB_ENV