Skip to content

Commit

Permalink
Push artifacts after each end-to-end deployment regardless of success
Browse files Browse the repository at this point in the history
  • Loading branch information
gbryant-arm committed Jul 6, 2023
1 parent f87d1bf commit d0f10c1
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,21 @@ jobs:
file output/prediction.0.jpg | grep "JPEG image data"
rm -rf output
- name: Run VOD in Veracruz-Linux as WASM
id: linux-vod-wasm
run: |
POLICY_GENERATOR_PATH="artifacts/generate-policy" CLIENT_PATH="artifacts/veracruz-client" SERVER_PATH="artifacts/linux-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" SERVER_LOG="server.log" POLICY_PATH="policy.json" ./deploy_linux_wasm.sh
# Check results
file prediction.0.jpg | grep "JPEG image data"
rm prediction.0.jpg
- name: Upload VOD artifacts (WASM)
id: upload-vod-artifacts-wasm
if: success() || steps.linux-vod-wasm.conclusion == 'failure'
uses: actions/upload-artifact@v3
with:
name: linux-vod-wasm
path: |
policy.json
server.log
- name: Set up sandbox environment
run: |
git clone --recursive https://github.com/veracruz-project/native-module-sandboxer -b $NATIVE_MODULE_SANDBOXER_TAG
Expand All @@ -218,15 +228,17 @@ jobs:
cmake ..
make
- name: Run VOD in Veracruz-Linux as sandboxed native code (PNM)
id: linux-vod-pnm
run: |
POLICY_GENERATOR_PATH="artifacts/generate-policy" CLIENT_PATH="artifacts/veracruz-client" SERVER_PATH="artifacts/linux-veracruz-server" RUNTIME_MANAGER_PATH="artifacts/linux-runtime-manager" NATIVE_MODULE_SANDBOXER_PATH="native-module-sandboxer/build/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" SERVER_LOG="server.log" POLICY_PATH="policy.json" ./deploy_linux_pnm.sh
# Check results
file prediction.0.jpg | grep "JPEG image data"
- name: Upload VOD artifacts
id: upload-vod-artifacts
- name: Upload VOD artifacts (PNM)
id: upload-vod-artifacts-pnm
if: success() || steps.linux-vod-pnm.conclusion == 'failure'
uses: actions/upload-artifact@v3
with:
name: linux-vod
name: linux-vod-pnm
path: |
policy.json
server.log
Expand Down

0 comments on commit d0f10c1

Please sign in to comment.