Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Renzo committed Oct 30, 2023
1 parent 4258c3b commit 0b71147
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/parallel_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -72,15 +79,21 @@ 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
- name: Install ssl
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
Expand Down

0 comments on commit 0b71147

Please sign in to comment.