From 61e63017459e42a9463f77136e0a719aa7915baa Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Sun, 29 Sep 2024 04:47:13 +0800 Subject: [PATCH] Verbose runtime monitoring for example scripts in workflow pipeline. --- .github/workflows/build_ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build_ci.yml b/.github/workflows/build_ci.yml index 2748ab3..fefe68b 100644 --- a/.github/workflows/build_ci.yml +++ b/.github/workflows/build_ci.yml @@ -65,3 +65,13 @@ jobs: ./dist/zhivo-cuda ./test/types.zhv end=$(date +%s%3N) echo "Elapsed time: $((end - start)) ms" + + - name: Run examples (x86) + run: | + /usr/bin/time -v ./dist/zhivo-x86 ./examples/hello.zhv + /usr/bin/time -v ./dist/zhivo-x86 ./examples/99-beers.zhv + + - name: Run examples (CUDA) + run: | + /usr/bin/time -v ./dist/zhivo-cuda ./examples/hello.zhv + /usr/bin/time -v ./dist/zhivo-cuda ./examples/99-beers.zhv