Skip to content

Commit

Permalink
Add native module (PNM) deployment to VOD job
Browse files Browse the repository at this point in the history
  • Loading branch information
gbryant-arm committed Jun 28, 2023
1 parent 81f9d9f commit 1422052
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:
# Check results
file output/prediction.0.jpg | grep "JPEG image data"
rm -rf output
- name: Run VOD in Freestanding Execution Engine
- name: Run VOD in Freestanding Execution Engine as WASM
run: |
# grab every bash code block for this step, remove line continuation,
# and only keep lines that start with '$' (of course removing that '$'
Expand All @@ -197,11 +197,27 @@ jobs:
# Check results
file output/prediction.0.jpg | grep "JPEG image data"
rm -rf output
- name: Run VOD in Veracruz-Linux
- name: Run VOD in Veracruz-Linux as WASM
run: |
POLICY_GENERATOR_PATH="artifacts/generate-policy" CLIENT_PATH="artifacts/veracruz-client" SERVER_PATH="artifacts/veracruz-server" RUNTIME_MANAGER_PATH="artifacts/linux-runtime-manager" CA_CERT_CONF_PATH="artifacts/ca-cert.conf" CERT_CONF_PATH="artifacts/cert.conf" PROXY_CLEANUP_SCRIPT_PATH="artifacts/proxy_cleanup.sh" ./deploy_linux.sh
# Check results
file prediction.0.jpg | grep "JPEG image data"
rm prediction.0.jpg
- name: Set up sandbox environment
run: |
git clone --recursive https://github.com/veracruz-project/native-module-sandboxer
cd native-module-sandboxer
mkdir build
cd build
cmake ..
make
mkdir /tmp/nmm
cp -a native-module-sandboxer /tmp/nmm
- name: Run VOD in Veracruz-Linux as sandboxed native code (PNM)
run: |
POLICY_GENERATOR_PATH="artifacts/generate-policy" CLIENT_PATH="artifacts/veracruz-client" SERVER_PATH="artifacts/veracruz-server" RUNTIME_MANAGER_PATH="artifacts/linux-runtime-manager" NATIVE_MODULE_SANDBOXER_PATH="/tmp/nmm/native-module-sandboxer" CA_CERT_CONF_PATH="artifacts/ca-cert.conf" CERT_CONF_PATH="artifacts/cert.conf" PROXY_CLEANUP_SCRIPT_PATH="artifacts/proxy_cleanup.sh" ./deploy_linux_pnm.sh
# Check results
file prediction.0.jpg | grep "JPEG image data"
nitro:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1422052

Please sign in to comment.