Sanitize scripts #16
Workflow file for this run
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: Validate | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CI: 1 | |
CARGO_TERM_COLOR: always | |
RENODE_DIR: /opt/renode/ | |
# Used by renode-test to generate snapshots of failed tests | |
RENODE_CI_MODE: YES | |
DLA_BIN: dla | |
jobs: | |
build-dla-example: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install requirements | |
run: rustup target add riscv64imac-unknown-none-elf | |
- name: Build examples | |
working-directory: ./examples/hpc/hello-dla | |
run: cargo build --example dla | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: $DLA_BIN | |
path: ./examples/hpc/hello-dla/target/riscv64imac-unknown-none-elf/debug/examples/dla | |
if-no-files-found: error | |
retention-days: 14 | |
run-dla-example: | |
needs: build-dla-example | |
runs-on: ubuntu-latest | |
container: | |
image: antmicro/renode:1.14.0 | |
options: --user root | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: $DLA_BIN | |
- name: Create Renode peripheral symlinks | |
run: ./scripts/setup_renode.sh -y | |
- name: Run example | |
run: renode-test scripts/robot/hello_dla.robot --variable BIN:"$(readlink -f $DLA_BIN)" | |
- name: Upload snapshots | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
path: snapshots/ |