-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.33 KB
/
gen-docs.yaml
File metadata and controls
53 lines (44 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Automatically build squid documentation
on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
workflow_dispatch:
schedule:
- cron: '5 2 * * *'
jobs:
gen-docs:
runs-on: ubuntu-24.04
steps:
- name: Install prerequisite Linux packages
run: |
# required for "apt-get build-dep" to work
sudo sed --in-place -E 's/^(Types: deb)$/\1 deb-src/' /etc/apt/sources.list.d/ubuntu.sources
sudo apt-get --quiet=2 update
sudo apt-get --quiet=2 build-dep squid
sudo apt-get --quiet=2 install libtool-bin doxygen graphviz pdf2svg
- name: Checkout Docs
uses: actions/checkout@v5
with:
token: ${{ secrets.PUSH_TOKEN }}
- name: Checkout Squid sources
uses: actions/checkout@v5
with:
repository: squid-cache/squid
path: squid
- name: Prepare squid sources
working-directory: squid
run: |
./bootstrap.sh
. ./test-suite/buildtests/layer-02-maximus.opts
eval ./configure $DISTCHECK_CONFIGURE_FLAGS
- name: Build programming guide
run: |
doxygen doxyfile
- name: update self
uses: EndBug/add-and-commit@v9
with:
message: "automated update"
add: "./docs"
push: true