Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
vChavezB authored Apr 13, 2024
1 parent c3696aa commit 0758b7a
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 16 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/build.yml → .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) 2024, Victor Chavez (vchavezb@protonmail.com)
# SPDX-License-Identifier: Apache-2.0

name: Build

on:
Expand Down Expand Up @@ -30,21 +33,14 @@ jobs:
- name: Build Central
working-directory: /tmp/
run: |
west build $GITHUB_WORKSPACE/test/renode/uptime_central -b $BOARD --build-dir $GITHUB_WORKSPACE/test/renode/uptime_central/build
- name: Build posix
working-directory: /tmp/
run: |
west build $GITHUB_WORKSPACE/samples/uptime -b native_posix_64 --build-dir $GITHUB_WORKSPACE/samples/uptime/build_posix
west build $GITHUB_WORKSPACE/tests/renode/uptime_central -b $BOARD --build-dir $GITHUB_WORKSPACE/tests/renode/uptime_central/build
- name : Upload Firmware
uses: actions/upload-artifact@v4
with:
name: zephyr-build
path: |
samples/uptime/build/zephyr/zephyr.elf
samples/uptime/build_posix/zephyr/zephyr.exe
test/renode/uptime_central/build/zephyr/zephyr.elf
test:
Expand All @@ -58,15 +54,12 @@ jobs:
uses: actions/download-artifact@v4
with:
name: zephyr-build

- name: Verify binaries path
run: sudo apt-get install tree -y && tree

- name: Run tests on latest Renode
uses: antmicro/renode-test-action@v3.0.0
with:
renode-version: '1.13.3'
tests-to-run: 'test/renode/uptime_test.robot'
tests-to-run: 'tests/renode/uptime_test.robot'
renode-path: renode-1.13
artifacts-path: ${{ github.workspace }}

Expand Down
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ build*
*.pyc
*.idea
*.vscode/*
test/renode/logs/*
test/renode/*.html
test/renode/*.xml
test/renode/snapshots
tests/renode/logs/*
tests/renode/*.html
tests/renode/*.xml
tests/renode/snapshots
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*** Copyright (c) 2024, Victor Chavez ***
*** SPDX-License-Identifier: Apache-2.0 ***
*** Variables ***
${UART} sysbus.uart0
Expand Down

0 comments on commit 0758b7a

Please sign in to comment.