Skip to content

Commit

Permalink
trying to fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
franzflasch committed Aug 4, 2023
1 parent 7c60cbf commit 2b623ed
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/run_single_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ GCC_VERSION="$2"
ENABLE_TAR_BUILD="$3"
ENABLE_PACKAGE="$4"

docker_build_cmd="docker build --build-arg ARCH="$ARCH_TO_BUILD" --build-arg USE_TAR="$ENABLE_TAR_BUILD" --build-arg PACKAGE="$ENABLE_PACKAGE" --build-arg GCC_VERSION="$GCC_VERSION" -f "$BASEDIR"/dockerfile_ubuntu22_04 --rm=true ."
docker build -t docker_image_$ARCH_TO_BUILD --build-arg ARCH="$ARCH_TO_BUILD" --build-arg USE_TAR="$ENABLE_TAR_BUILD" --build-arg PACKAGE="$ENABLE_PACKAGE" --build-arg GCC_VERSION="$GCC_VERSION" -f "$BASEDIR"/dockerfile_ubuntu22_04 --rm=true .

$docker_build_cmd
IMAGE_ID=$($docker_build_cmd | grep 'writing image' | awk '{print $NF}')

CONTAINER_ID=$(docker create ${IMAGE_ID})
CONTAINER_ID=$(docker create docker_image_$ARCH_TO_BUILD)
docker cp ${CONTAINER_ID}:/home/toolchain_install .
docker rm ${CONTAINER_ID}

Expand Down

0 comments on commit 2b623ed

Please sign in to comment.