Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/cache-gvsoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
repository: lukamac/gvsoc
ref: siracusa-mac
submodules: recursive
path: gvsoc

- name: Install Apt Packages
run: |
Expand All @@ -31,13 +32,15 @@ jobs:
python-version: '3.10'

- name: Install Python Packages
run: pip install -r requirements.txt -r gapy/requirements.txt -r core/requirements.txt
run: pip install -r gvsoc/requirements.txt -r gvsoc/gapy/requirements.txt -r gvsoc/core/requirements.txt

- name: Build
run: make all TARGETS=siracusa
run: |
cd gvsoc
make all TARGETS=siracusa

- name: Cache
uses: actions/cache/save@v4
with:
path: install
path: gvsoc/install
key: gvsoc
2 changes: 1 addition & 1 deletion .github/workflows/cache-pulp-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: toolchain/gnu
key: gnu-toolchain
key: toolchain-gnu
fail-on-cache-miss: true

- name: Build
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/test-neureka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,21 @@ jobs:
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path:
- pulp-nnx/test/requirements.txt
- pulp-nnx/test/workflow-requirements/requirements-run-pulp-sdk.txt
cache-dependency-path: |
pulp-nnx/test/requirements.txt
pulp-nnx/test/workflow-requirements/requirements-run-pulp-sdk.txt

- name: Install Python Packages
run: |
pip install \
-r pulp-nnx/test/requirements.txt \
-r pulp-nnx/test/workflow-requirements/requirements-run-pulp-sdk.txt

- name: Restore Cached Gnu Toolchain
uses: actions/cache/restore@v4
with:
path: toolchain/gnu
key: gnu-toolchain
key: toolchain-gnu
fail-on-cache-miss: true

- name: Restore Cached PULP-SDK
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/test-neureka_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ jobs:
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path:
- pulp-nnx/test/requirements.txt
- pulp-nnx/test/workflow-requirements/requirements-run-gvsoc.txt
cache-dependency-path: |
pulp-nnx/test/requirements.txt
pulp-nnx/test/workflow-requirements/requirements-run-gvsoc.txt

- name: Install Python Packages
run: |
pip install \
-r pulp-nnx/test/requirements.txt \
-r pulp-nnx/test/workflow-requirements/requirements-run-gvsoc.txt

- name: Restore Cached Gnu Toolchain
uses: actions/cache/restore@v4
Expand All @@ -35,14 +41,14 @@ jobs:
- name: Restore Cached GVSoC
uses: actions/cache/restore@v4
with:
path: install
path: gvsoc/install
key: gvsoc
fail-on-cache-miss: true

- name: Run test
run: |
export PULP_SDK_HOME=$GITHUB_WORKSPACE/pulp-sdk
export TOOLCHAIN_GNU_INSTALL_DIR=$GITHUB_WORKSPACE/toolchain/gnu
export GVSOC=$GITHUB_WORKSPACE/gvsoc/bin/gvsoc
export GVSOC=$GITHUB_WORKSPACE/gvsoc/install/bin/gvsoc
cd pulp-nnx/test
pytest test.py -T tests -R -A neureka_v2 --build-flow=cmake --wmem=mram
5 changes: 4 additions & 1 deletion test/workflow-requirements/requirements-run-gvsoc.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
argcomplete
six
pexpect
pyelftools
prettytable
rich
pexpect
Loading