Skip to content

Commit

Permalink
[#66307] Migrate to newer Renode, newer Python and bzlmod
Browse files Browse the repository at this point in the history
  • Loading branch information
JanOlencki committed Oct 21, 2024
1 parent 53c4881 commit f3f9584
Show file tree
Hide file tree
Showing 22 changed files with 3,591 additions and 281 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/bazel_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Temporary workaround
run: mkdir -p ~/.config/renode

- name: Run example test
run: |
bazel test //examples/nxp-k64f:nxp-k64f-test
cd examples/cortex-r52
bazel test //:cortex-r52-test
- name: Upload Bazel artifacts
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: renode-bazel-artifacts
path: bazel-testlogs*/**/*
path: examples/*/bazel-testlogs*/**/*
4 changes: 0 additions & 4 deletions BUILD

This file was deleted.

18 changes: 18 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module(
name = "rules_renode",
version = "0.1.0",
)

bazel_dep(name = "platforms", version = "0.0.8")
bazel_dep(name = "rules_python", version = "0.36.0")

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = "3.11")

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "renode_test_python_deps",
python_version = "3.11",
requirements_lock = "//renode:renode_requirements_lock.txt",
)
use_repo(pip, "renode_test_python_deps")
Loading

0 comments on commit f3f9584

Please sign in to comment.