-
-
Notifications
You must be signed in to change notification settings - Fork 19
56 lines (48 loc) · 1.77 KB
/
Copy pathdocs.yml
File metadata and controls
56 lines (48 loc) · 1.77 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
54
55
56
name: Docs
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install system dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
build-essential pkg-config nasm clang libclang-dev \
libjpeg-turbo8-dev libx264-dev \
libudev-dev libva-dev libdrm-dev libgbm-dev \
libwayland-dev libxkbcommon-dev \
libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev
- name: Install FFmpeg 8.1
run: |
curl -L -o /tmp/miniforge.sh \
"https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash /tmp/miniforge.sh -b -p $HOME/miniforge3
source $HOME/miniforge3/etc/profile.d/conda.sh
conda create -y -n pixelflux-docs -c conda-forge "ffmpeg=8.1"
conda activate pixelflux-docs
echo "PKG_CONFIG_PATH=$CONDA_PREFIX/lib/pkgconfig:${PKG_CONFIG_PATH:-}" >> $GITHUB_ENV
- name: Build docs
run: cargo doc --no-deps
working-directory: pixelflux
- name: Prepare site
run: |
touch pixelflux/target/doc/.nojekyll
cat > pixelflux/target/doc/index.html << 'EOF'
<!DOCTYPE html>
<meta http-equiv="refresh" content="0; url=pixelflux/index.html">
<a href="pixelflux/index.html">Redirecting...</a>
EOF
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: pixelflux/target/doc
keep_files: true