Skip to content

Commit

Permalink
ci: Install Doxygen in container and use for doc deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Aug 27, 2024
1 parent 91afe77 commit 72fa216
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,10 @@ jobs:
deploy:
name: Deploy documentation
runs-on: ubuntu-22.04
container:
image: ghcr.io/pulp-platform/snitch_cluster:doxygen-docs
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: mattnotmitt/doxygen-action@v1
with:
working-directory: sw/
- name: bender install
uses: pulp-platform/pulp-actions/bender-install@v2
with:
version: 0.27.1
- name: Install Python requirements
run: pip install -r python-requirements.txt
- name: Generate documentation sources
run: |
make doc-srcs
Expand Down
7 changes: 7 additions & 0 deletions util/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ARG PYTHON_VERSION=3.9.12
ARG BENDER_VERSION=0.27.1
ARG SPIKE_DASM_VERSION=0.1.0
ARG VERILATOR_VERSION=5.006
ARG DOXYGEN_VERSION=1.12.0
# Run dpkg without interactive dialogue
ARG DEBIAN_FRONTEND=noninteractive

Expand Down Expand Up @@ -90,6 +91,10 @@ RUN tar xzf bender-${BENDER_VERSION}-x86_64-linux-gnu-ubuntu18.04.tar.gz
RUN wget https://github.com/pulp-platform/riscv-isa-sim/releases/download/snitch-v${SPIKE_DASM_VERSION}/snitch-spike-dasm-${SPIKE_DASM_VERSION}-x86_64-linux-gnu-ubuntu18.04.tar.gz
RUN tar xzf snitch-spike-dasm-${SPIKE_DASM_VERSION}-x86_64-linux-gnu-ubuntu18.04.tar.gz

# Install Doxygen
RUN wget https://www.doxygen.nl/files/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz
RUN tar xzf doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz

# 2. Stage
FROM ubuntu:22.04 AS snitch_cluster
ARG SNITCH_LLVM_VERSION=latest
Expand Down Expand Up @@ -146,9 +151,11 @@ RUN apt-get update && apt-get install software-properties-common -y && \
# Copy artifacts from stage 1.
COPY --from=builder /tools/bender bin/
COPY --from=builder /tools/spike-dasm bin/
COPY --from=builder /tools/spike-dasm bin/
COPY --from=builder /root/.cargo/bin/banshee bin/
COPY --from=builder /opt/python /opt/python
COPY --from=builder /tools/verilator /tools/verilator/
COPY --from=builder /tools/doxygen-${DOXYGEN_VERSION}/bin/doxygen bin/

# Create and activate virtual environment
ENV VIRTUAL_ENV "/root/.venvs/snitch_cluster"
Expand Down

0 comments on commit 72fa216

Please sign in to comment.