[#67654] Add co-simulation targets to the toolchain #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Renode Bazel Rules test | |
on: | |
- push | |
- workflow_dispatch | |
jobs: | |
test_examples: | |
name: Test examples | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Run example tests | |
run: | | |
pushd examples/cortex-r52 | |
bazel test //:all | |
ls bazel-testlogs/*/test.outputs/outputs.zip | |
popd | |
pushd examples/failing-test | |
! bazel test //:all > test.log || exit 1 | |
ls bazel-testlogs/*/test.outputs/outputs.zip | |
grep -E "//:success-test +PASSED" test.log | |
grep -E "//:failing-test +FAILED" test.log | |
popd | |
- name: Upload Bazel artifacts | |
uses: actions/upload-artifact@v4 | |
if: ${{ always() }} | |
with: | |
name: renode-bazel-artifacts | |
path: examples/*/bazel-testlogs*/**/* |