aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-12-18 11:08:03 +0100
committerumarcor <unai.martinezcorral@ehu.eus>2021-12-18 16:12:24 +0100
commit20be1d2b79823aa8033cea43067d3bfe5c21048a (patch)
treeb48c8d3f0657a90f7cc851137b6524580192df10 /.github
parenta1647d6917f52ac28f51aebaa407c03fd9a4b386 (diff)
downloadghdl-20be1d2b79823aa8033cea43067d3bfe5c21048a.tar.gz
ghdl-20be1d2b79823aa8033cea43067d3bfe5c21048a.tar.bz2
ghdl-20be1d2b79823aa8033cea43067d3bfe5c21048a.zip
ci: use ghdl/debug:base for running gnatdoc only
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/Test.yml43
1 files changed, 31 insertions, 12 deletions
diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml
index a9f78b58c..bc057ad27 100644
--- a/.github/workflows/Test.yml
+++ b/.github/workflows/Test.yml
@@ -15,7 +15,31 @@ jobs:
# Doc
#
+ gnatdoc:
+ name: '📚 gnatdoc'
+ runs-on: ubuntu-latest
+
+ steps:
+
+ - name: '🧰 Checkout'
+ uses: actions/checkout@v2
+
+ - name: '📚 Run gnatdoc'
+ run: |
+ docker run --rm -i -v $(pwd):/src -w /src ghdl/debug:base <<'EOF'
+ #!/usr/bin/env sh
+ ./configure && make && make install
+ gnatdoc -P./ghdl
+ EOF
+
+ - name: '📤 Upload artifact: gnatdoc'
+ uses: actions/upload-artifact@v2
+ with:
+ name: gnatdoc
+ path: gnatdoc
+
doc:
+ needs: gnatdoc
name: '📓 Docs'
runs-on: ubuntu-latest
@@ -27,22 +51,17 @@ jobs:
- name: 'â›´ Build ghdl/doc'
run: |
docker build -t ghdl/doc . -f- <<-EOF
- FROM ghdl/debug:base
- ENV PYTHONPATH=/opt/ghdl/pyGHDL
+ FROM ghdl/build:bullseye-mcode
+ RUN apt update -qq && apt install -y python3-pip graphviz
COPY . /opt/ghdl
RUN cd /opt/ghdl && ./configure && make && make install
EOF
- - name: '📚 Run gnatdoc'
- run: |
- cat > run.sh <<-EOF
- #!/usr/bin/env sh
- gnatdoc -P./ghdl
- mkdir /src/public
- mv gnatdoc /src/public/gnatdoc
- EOF
- chmod +x run.sh
- docker run --rm -v $(pwd):/src -w /opt/ghdl ghdl/doc /src/run.sh
+ - name: '📥 Download artifact: gnatdoc'
+ uses: actions/download-artifact@v2
+ with:
+ name: gnatdoc
+ path: public/gnatdoc
- name: '📓 BuildTheDocs (BTD)'
uses: buildthedocs/btd@v0