build: Build docs separately and on a later image. Also remove some build dependencies I don't think we need.
This commit is contained in:
@@ -3,6 +3,36 @@ run-name: ${{ gitea.actor }} running 🚀
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
Build-Docs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: node:trixie-slim
|
||||||
|
valid_volumes:
|
||||||
|
- '/opt/keys'
|
||||||
|
volumes:
|
||||||
|
- /opt/keys:/opt/keys
|
||||||
|
steps:
|
||||||
|
- name: Install build dependencies
|
||||||
|
run: >
|
||||||
|
apt update && apt install -y \
|
||||||
|
build-essential \
|
||||||
|
doxygen \
|
||||||
|
file \
|
||||||
|
git \
|
||||||
|
graphviz \
|
||||||
|
rsync \
|
||||||
|
unzip \
|
||||||
|
zip
|
||||||
|
- name: Get code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: Build documentation
|
||||||
|
run: |
|
||||||
|
mkdir -p out/html/ ~/.ssh/
|
||||||
|
make -j`nproc` docs
|
||||||
|
echo 'pildefriends ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKD3Kde5vDO0TrMBDK0IGGeNGe/XinWAZkSQ/rXxwUjt' >> ~/.ssh/known_hosts
|
||||||
|
rsync -avP --delete -e "ssh -i /opt/keys/ssh.ed25519" out/html/ tfdocs@pildefriends:docs/html/
|
||||||
Build-All:
|
Build-All:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
@@ -28,12 +58,10 @@ jobs:
|
|||||||
git \
|
git \
|
||||||
graphviz \
|
graphviz \
|
||||||
libgpgme11 \
|
libgpgme11 \
|
||||||
libssl-dev \
|
|
||||||
mingw-w64 \
|
mingw-w64 \
|
||||||
rsync \
|
rsync \
|
||||||
unzip \
|
unzip \
|
||||||
zip \
|
zip
|
||||||
zlib1g-dev
|
|
||||||
- name: Get code
|
- name: Get code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -50,7 +78,6 @@ jobs:
|
|||||||
mkdir -p out/html/ ~/.ssh/
|
mkdir -p out/html/ ~/.ssh/
|
||||||
make -j`nproc` docs
|
make -j`nproc` docs
|
||||||
echo 'pildefriends ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKD3Kde5vDO0TrMBDK0IGGeNGe/XinWAZkSQ/rXxwUjt' >> ~/.ssh/known_hosts
|
echo 'pildefriends ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKD3Kde5vDO0TrMBDK0IGGeNGe/XinWAZkSQ/rXxwUjt' >> ~/.ssh/known_hosts
|
||||||
rsync -avP --delete -e "ssh -i /opt/keys/ssh.ed25519" out/html/ tfdocs@pildefriends:docs/html/
|
|
||||||
- name: Setup JDK
|
- name: Setup JDK
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user