Skip to content

Commit

Permalink
Use new action
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichalski-ant committed Feb 7, 2024
1 parent f94e442 commit d3e340c
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Generate and publish docs

on:
push:
branches:
- main
# branches:
# - main
pull_request:
workflow_dispatch:
schedule:
Expand Down Expand Up @@ -37,39 +37,33 @@ jobs:
run: |
truncate drive.img -s 128MB
mkfs.ext4 drive.img
mkdir ../out
- name: Generate test report in Renode
uses: antmicro/renode-linux-runner-action@v1
uses: antmicro-labs/renode-linux-runner-action@shared_dirs_improvements
with:
board: custom
resc: ${{ github.workspace }}/.github/test_platform/init.resc
repl: ${{ github.workspace }}/.github/test_platform/platform.repl
arch: riscv64
kernel: ${{ github.workspace }}/.github/test_platform/kernel-riscv64-hifive_unleashed_virtio.tar.xz
shared-dirs: ./
shared-dirs: |
./
../out /home/protoplaster/out
renode-run: |
python -m venv .venv
source .venv/bin/activate
pip install .
protoplaster -t example.yml --csv report.csv
protoplaster-test-report report.csv -t md
mkdir -p host_dir
mount /dev/vdb host_dir
cp report.md host_dir/report.md
umount host_dir
cp report.md protoplaster/out/report.md
devices: |
gpio 0 32
i2c 0x3C
i2c 0x70
tasks: |
${{ github.workspace }}/.github/test_platform/renode_network.yml
${{ github.workspace }}/.github/test_platform/v4l2.yml
- name: Read report from image
run: |
mkdir guest_out
sudo mount drive.img guest_out
cp guest_out/report.md report.md
# mkdir guest_out
# sudo mount drive.img guest_out
# cp ../out/report.md report.md
- name: Generate system report from yml
run: |
Expand Down

0 comments on commit d3e340c

Please sign in to comment.