diff --git a/.github/workflows/parallel_tests.yml b/.github/workflows/parallel_tests.yml index 3f56e13c60d..42426d233da 100644 --- a/.github/workflows/parallel_tests.yml +++ b/.github/workflows/parallel_tests.yml @@ -61,7 +61,14 @@ jobs: target: developer - name: Minimal test of built container # Just test to see if one of our binaries is built run: docker run --rm "panda_local:${{ github.sha }}" /bin/bash -c 'exit $(/panda/build/arm-softmmu/panda-system-arm -help | grep -q "usage. panda-system-arm")' - + - name: Save docker container for next job + run: docker save -o panda_local.tar panda_local:${{ github.sha }} && gzip panda_local.tar + - name: 'Upload Artifact' + uses: actions/upload-artifact@v3 + with: + name: panda_local_image + path: panda_local.tar.gz + retention-days: 2 taint_tests: if: github.repository == 'panda-re/panda' runs-on: panda-arc @@ -72,6 +79,12 @@ jobs: target: [i386, x86_64] steps: + - name: Download a panda artifact + uses: actions/download-artifact@v3 + with: + name: panda_local_image + - name: Save docker container for next job + run: docker load -i panda_local.tar.gz # Given a container with PANDA installed at /panda, run the taint tests - name: Update run: sudo apt-get update -y @@ -79,8 +92,8 @@ jobs: run: sudo apt-get install -y wget - name: Run taint tests inside current container run: >- - wget https://panda-re.mit.edu/qcows/linux/debian/7.3/x86/debian_7.3_x86.qcow -o wheezy_panda2.qcow2; - wget https://panda-re.mit.edu/qcows/linux/ubuntu/1804/x86_64/bionic-server-cloudimg-amd64-noaslr-nokaslr.qcow2; + wget -q https://panda-re.mit.edu/qcows/linux/debian/7.3/x86/debian_7.3_x86.qcow -o wheezy_panda2.qcow2; + wget -q https://panda-re.mit.edu/qcows/linux/ubuntu/1804/x86_64/bionic-server-cloudimg-amd64-noaslr-nokaslr.qcow2; docker run --name panda_test_${{ matrix.target }}_${GITHUB_RUN_ID} --mount type=bind,source=$(pwd)/wheezy_panda2.qcow2,target=/home/panda/regdir/qcows/wheezy_panda2.qcow2 --mount type=bind,source=$(pwd)/bionic-server-cloudimg-amd64-noaslr-nokaslr.qcow2,target=/home/panda/regdir/qcows/bionic-server-cloudimg-amd64-noaslr-nokaslr.qcow2