-
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (76 loc) · 2.29 KB
/
docs.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Deploy to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install -g sass
- name: Update repos
run: sudo apt update
- name: Install system level libraries
run: sudo apt install libpango1.0-dev libgtk-4-dev libgee-0.8-dev libgexiv2-dev meson ninja-build valac valadoc libpulse-dev
- name: Checkout libhelium
uses: actions/checkout@v3
with:
repository: tau-OS/libhelium
path: libhelium-src
- name: Install libhelium
run: meson build -Ddemo=false
working-directory: ./libhelium-src
- name: Build libhelium with Ninja
run: ninja
working-directory: ./libhelium-src/build
- name: Install libhelium globally
run: sudo ninja install
working-directory: ./libhelium-src/build
- name: Checkout libbismuth
uses: actions/checkout@v3
with:
repository: tau-OS/libbismuth
path: libbismuth-src
- name: Install libbismuth
run: meson build
working-directory: ./libbismuth-src
- name: Build libbismuth with Ninja
run: ninja
working-directory: ./libbismuth-src/build
- name: Install libbismuth globally
run: sudo ninja install
working-directory: ./libbismuth-src/build
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
default: true
components: rustfmt, clippy
- name: Generate docs
run: cargo install rustdoc-stripper
- run: ./generator.py --embed-docs
- run: cargo doc --features dox --no-deps
- run: mv target/doc/ docs
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "docs/"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1