Skip to content

Commit

Permalink
build, refactor: docker name for linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Oct 27, 2023
1 parent bed7626 commit 59273e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ DIST_EXEC="bin/${HOST_OS}_${BUILD_ARCH}_${BUILD_TYPE}/jssdk_test"
if [[ $HOST_OS == 'Linux' ]]; then
CUR=`pwd`

if [[ "$BUILD_TARGET" != "" ]]; then
docker run -t --rm -v ${CUR}:${CUR} fibjs/${BUILD_TARGET}-test-env:${BUILD_ARCH} bash -c "cd ${CUR}; $DIST_EXEC"
else
if [[ "$BUILD_TARGET" == "linux" ]]; then
if [[ $BUILD_ARCH == 'x64' ]]; then
docker run -t --rm -v ${CUR}:${CUR} ubuntu:12.04 bash -c "cd ${CUR}; $DIST_EXEC"
else
docker run -t --rm -v ${CUR}:${CUR} fibjs/linux-build-env:${BUILD_ARCH} bash -c "cd ${CUR}; $DIST_EXEC"
docker run -t --rm -v ${CUR}:${CUR} fibjs/${BUILD_TARGET}-build-env:${BUILD_ARCH} bash -c "cd ${CUR}; $DIST_EXEC"
fi
else
docker run -t --rm -v ${CUR}:${CUR} fibjs/${BUILD_TARGET}-test-env:${BUILD_ARCH} bash -c "cd ${CUR}; $DIST_EXEC"
fi
else # Windows/Darwin
$DIST_EXEC
Expand Down

0 comments on commit 59273e5

Please sign in to comment.