Skip to content

Commit

Permalink
Fix for build action.
Browse files Browse the repository at this point in the history
  • Loading branch information
aartiPl committed May 25, 2022
1 parent ce44999 commit 4af8bf6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,37 +42,40 @@ jobs:
timeout-minutes: 10
shell: bash
run: |
export PATH=${GITHUB_WORKSPACE}/build/libs:${PATH}
echo "OsType: $OSTYPE"
echo "kscript path: $(which kscript)"
export PATH=./build/libs:${PATH}
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
echo "Linux test..."
./test/test_suite.sh
elif [[ "$OSTYPE" == "darwin"* ]]; then
echo "MacOs test..."
./gradlew clean build
echo "kscript path: $(which kscript)"
kscript --help
kscript -d "println(1+1)"
elif [[ "$OSTYPE" == "cygwin" ]]; then
echo "Cygwin test..."
./gradlew clean build
echo "kscript path: $(which kscript)"
kscript --help
kscript -d "println(1+1)"
elif [[ "$OSTYPE" == "msys" ]]; then
echo "MSys test..."
./gradlew clean build
echo "kscript path: $(which kscript)"
kscript --help
kscript -d "println(1+1)"
elif [[ "$OSTYPE" == "win32" ]]; then
echo "Windows test..."
./gradlew clean build
echo "kscript path: $(which kscript)"
kscript --help
kscript -d "println(1+1)"
elif [[ "$OSTYPE" == "freebsd"* ]]; then
echo "FreeBsd test..."
./gradlew clean build
echo "kscript path: $(which kscript)"
kscript --help
kscript -d "println(1+1)"
else
Expand Down

0 comments on commit 4af8bf6

Please sign in to comment.