-
Notifications
You must be signed in to change notification settings - Fork 66
72 lines (65 loc) · 1.83 KB
/
branch_doc.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
on:
push:
branches:
- '*'
- '!main'
name: Build Branch documentation
jobs:
build:
name: Build Branch documentation and deploy to gh-pages
runs-on: ubuntu-latest
env:
RXCB_RUSTFMT: 1
RUSTDOCFLAGS: -Dwarnings
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install \
libgl1-mesa-dev \
libxcb-composite0-dev \
libxcb-damage0-dev \
libxcb-dpms0-dev \
libxcb-dri2-0-dev \
libxcb-dri3-dev \
libxcb-glx0-dev \
libxcb-present-dev \
libxcb-randr0-dev \
libxcb-record0-dev \
libxcb-render0-dev \
libxcb-res0-dev \
libxcb-screensaver0-dev \
libxcb-shape0-dev \
libxcb-shm0-dev \
libxcb-sync-dev \
libxcb-xf86dri0-dev \
libxcb-xfixes0-dev \
libxcb-xinerama0-dev \
libxcb-xkb-dev \
libxcb-xtest0-dev \
libxcb-xv0-dev \
libxcb-xvmc0-dev \
libx11-xcb-dev
- name: Run cargo doc
uses: actions-rs/cargo@v1
with:
command: doc
args: --all-features
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v5
- name: Push on gh-pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: target/doc
target-folder: branches/${{ steps.branch-name.outputs.current_branch }}