diff --git a/.github/workflows/test-docker.yml b/.github/workflows/test-docker.yml index 88e21efac..c05bbb170 100644 --- a/.github/workflows/test-docker.yml +++ b/.github/workflows/test-docker.yml @@ -48,9 +48,10 @@ jobs: with: name: ${{ runner.os }}-asan-cache - - name: Unpack build files, create Dockerfile + - name: Unpack build files, create Dockerfile, build and start the container run: | tar -zxf build.tgz + set -vx cat docker/Dockerfile docker/Dockerfile.${{ inputs.name }} >Dockerfile devices=$(find /dev -type c -name 'nvidia*' | awk '{ print " --device "$1":"$1 }') @@ -59,11 +60,7 @@ jobs: devices="$devices --device /dev/dri:/dev/dri" getent group render | awk -F : '{ print "RUN groupadd -g "$3" render && usermod -a -G render ghrunner" }' >>Dockerfile } - echo devices=\"$devices\" >>$GITHUB_ENV - - name: Build and start the container - run: | - set -vx docker build . \ --build-arg http_proxy \ --build-arg https_proxy \ @@ -73,7 +70,7 @@ jobs: --env http_proxy \ --env https_proxy \ --env no_proxy \ - -id --name hdk-build.${{ inputs.name }} --network host ${{ env.devices }} hdk-build.${{ inputs.name }}:latest + -id --name hdk-build.${{ inputs.name }} --network host $devices hdk-build.${{ inputs.name }}:latest - name: Copy files into the container run: |