Skip to content

Commit 873e686

Browse files
authored
Fix CI, Docker Files, and Documentation Workflow (#100)
* Hotfix documentations and enable manual documentation build. * Fix broken Docker file * Fix breaking change and missing dependency * Adapt wrong instruction in README * Try to reduce disk usage * Try to reduce disk usage of building container * Adjust changelog * Fix formatting * Implement PR feedback
1 parent 6351bda commit 873e686

File tree

7 files changed

+20
-16
lines changed

7 files changed

+20
-16
lines changed

.github/workflows/BuildDockerDeeploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
- name: Free up disk space
5252
uses: jlumbroso/free-disk-space@v1.3.1
5353
with:
54+
tool-cache: true
5455
android: true
5556
dotnet: true
5657
haskell: true

.github/workflows/documentation.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: documentation
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
47

58
permissions:
69
contents: write
@@ -13,7 +16,7 @@ jobs:
1316
- uses: actions/setup-python@v5
1417
- name: Install dependencies
1518
run: |
16-
pip install numpy mako onnx_graphsurgeon ortools sphinx sphinx_rtd_theme myst_parser
19+
pip install numpy mako onnx_graphsurgeon ortools sphinx sphinx_rtd_theme myst-parser[linkify] sphinx_favicon
1720
- name: Sphinx build
1821
run: |
1922
sphinx-build docs _build

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ This file contains the changelog for the Deeploy project. The changelog is divid
55
This release containing major architectural changes, new platform support, enhanced simulation workflows, floating-point kernel support, training infrastructure for CCT models, memory allocation strategies, and documentation improvements.
66

77
### List of Pull Requests
8+
- Fix CI, Docker Files, and Documentation Workflow [#100](https://github.com/pulp-platform/Deeploy/pull/100)
89
- Chimera Platform Integration [#96](https://github.com/pulp-platform/Deeploy/pull/96)
910
- Add Tutorial and Refactor README [#97](https://github.com/pulp-platform/Deeploy/pull/97)
1011
- Reduce Mean Float Template [#92](https://github.com/pulp-platform/Deeploy/pull/92)

Container/Dockerfile.deeploy

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,19 @@ COPY Makefile ./
2121
COPY requirements-dev.txt ./
2222

2323
# Compile emulators
24-
RUN apt-get upgrade && \
25-
apt-get update && \
26-
apt-get install -y python3.10-venv \
27-
python3.10-distutils
28-
24+
# WIESEP: We need to already clean up some space, otherwise the GitHub runners run out of disk space
2925
RUN --mount=type=cache,target=/ccache \
3026
ccache -z && \
3127
make pulp-sdk chimera-sdk qemu mempool banshee xtensor && \
3228
make gvsoc && \
3329
cp -r /app/toolchain/gvsoc/core/requirements.txt /app/core-requirements.txt && \
3430
cp -r /app/toolchain/gvsoc/gapy/requirements.txt /app/gapy-requirements.txt && \
31+
rm -rf toolchain/pulp-sdk toolchain/qemu toolchain/mempool toolchain/banshee toolchain/xtensor toolchain/xtl toolchain/xsimd toolchain/gvsoc && \
32+
ccache -s
33+
34+
# Install SoftHier emulator and toolchain
35+
RUN --mount=type=cache,target=/ccache \
36+
ccache -z && \
3537
make SOFTHIER_INSTALL_DIR=/app/install/softhier softhier && \
3638
ccache -s
3739

@@ -92,7 +94,8 @@ RUN mkdir -p /root/.cargo/bin/ && \
9294
libsdl2-dev \
9395
python-is-python3 \
9496
python3.10-venv \
95-
python3.10-distutils && \
97+
python3.10-distutils \
98+
gcc && \
9699
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
97100
python get-pip.py && \
98101
rm get-pip.py && \

Container/Dockerfile.toolchain

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ ENV PATH="/root/.cargo/bin:${PATH}"
1515
WORKDIR /app
1616

1717
# Install dependencies
18-
RUN apt-get upgrade && \
19-
apt-get update && \
18+
RUN apt-get update && \
19+
apt-get upgrade -y && \
2020
apt-get install -y git-lfs \
2121
build-essential \
2222
ccache \

DeeployTest/testUtils/platformMapping.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@
4747
from Deeploy.Targets.Snitch.Platform import SnitchOptimizer, SnitchPlatform
4848
from Deeploy.Targets.SoftHier.Deployer import SoftHierDeployer
4949
from Deeploy.Targets.SoftHier.Platform import SoftHierOptimizer, SoftHierPlatform
50-
from Deeploy.Targets.Chimera.Deployer import ChimeraDeployer
51-
from Deeploy.Targets.Chimera.Platform import ChimeraOptimizer, ChimeraPlatform
5250

53-
_SIGNPROP_PLATFORMS = ["Apollo3", "Apollo4", "QEMU-ARM", "Generic", "MemPool"]
54-
_NONSIGNPROP_PLATFORMS = ["Siracusa", "Siracusa_w_neureka", "PULPOpen", "Snitch"]
51+
_SIGNPROP_PLATFORMS = ["Apollo3", "Apollo4", "QEMU-ARM", "Generic", "MemPool", "SoftHier"]
52+
_NONSIGNPROP_PLATFORMS = ["Siracusa", "Siracusa_w_neureka", "PULPOpen", "Snitch", "Chimera"]
5553
_PLATFORMS = _SIGNPROP_PLATFORMS + _NONSIGNPROP_PLATFORMS
5654

5755

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ You can find the documentation at the following links:
2626

2727
A DeepWiki generated documentation is availabe [here](https://deepwiki.com/pulp-platform/Deeploy).
2828

29-
A tutorial, originally made for the ETH SoCDAML course, is available in `Tutorials/SoCDAML.md`.
30-
3129
## Getting started
3230

3331
Download the repository and its submodules:

0 commit comments

Comments
 (0)