Skip to content

Commit

Permalink
fixup! [#65650] Add GitHub Actions test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adrabarek committed Sep 23, 2024
1 parent b486ff7 commit 284ea6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ build_zephyr_binaries:
- wget --no-verbose https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${ZEPHYR_SDK_VERSION}/${ZEPHYR_SDK_FILENAME} && tar xf ${ZEPHYR_SDK_FILENAME} && pushd ${ZEPHYR_SDK_BASENAME} && ./setup.sh -t all -c && popd && export ZEPHYR_SDK_INSTALL_DIR=$(pwd)/${ZEPHYR_SDK_BASENAME}
- west init zephyrproject
- pushd zephyrproject/zephyr
- git checkout ${ZEPHYR_VERSION} && west update && west zephyr-export
- git checkout ${ZEPHYR_VERSION} && west update
- pip3 install -r scripts/requirements.txt
- west update
- popd
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ on:
renode_gitrev:
description: 'Renode git revision'
required: false
default: ''
renode_gitrepo:
description: 'Renode git repository'
required: false
default: ''

env:
WEST_VERSION: 1.2.0
Expand All @@ -24,7 +22,7 @@ env:
jobs:
build-zephyr-binaries:
name: Build Zephyr Binaries
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -60,7 +58,6 @@ jobs:
pushd zephyrproject/zephyr
git checkout ${{ env.ZEPHYR_VERSION }}
west update
west zephyr-export
echo "ZEPHYR_BASE=$PWD" >> "$GITHUB_ENV"
pip3 install -r scripts/requirements.txt
popd
Expand All @@ -87,7 +84,7 @@ jobs:

build-examples:
name: Build Examples
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

Expand All @@ -97,7 +94,7 @@ jobs:
sudo apt-get install -qqy libsystemc libsystemc-dev clang cmake
- name: Download and build Renode
uses: antmicro/renode-test-action@c9ccb70d1b7756e3388ed073cf1b0d440c53db29
uses: antmicro/renode-test-action@1a6d19637e2a71965feccc6c7efca3e1baf58b69
with:
renode-repository: ${{ inputs.renode_gitrepo || 'https://github.com/renode/renode' }}
renode-revision: ${{ inputs.renode_gitrev || 'master' }}
Expand All @@ -122,7 +119,7 @@ jobs:

test-examples:
name: Test Examples
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build-examples
steps:
- uses: actions/checkout@v4
Expand All @@ -139,7 +136,7 @@ jobs:
path: artifacts/example_binaries

- name: Download and build Renode
uses: antmicro/renode-test-action@c9ccb70d1b7756e3388ed073cf1b0d440c53db29
uses: antmicro/renode-test-action@1a6d19637e2a71965feccc6c7efca3e1baf58b69
with:
renode-repository: ${{ inputs.renode_gitrepo || 'https://github.com/renode/renode' }}
renode-revision: ${{ inputs.renode_gitrev || 'master' }}
Expand All @@ -151,7 +148,6 @@ jobs:
chmod +x "$i"
cp $i examples/"$(basename "$i")"/bin
done
ls -lAR .
pushd examples
renode-test -t all_examples.yaml
popd

0 comments on commit 284ea6c

Please sign in to comment.