Skip to content

Commit 9b368be

Browse files
authored
chore: fix mdbook deploy (#344)
1 parent 72cb3ba commit 9b368be

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/mdbook.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,14 @@ jobs:
3737
- name: Rust Cache
3838
uses: Swatinem/rust-cache@v2.7.3
3939

40-
- name: Install mdBook
41-
run: cargo xtask init --dont-update-ide
40+
- name: Setup xtask & GPU drivers
41+
run: |
42+
cargo xtask init --dont-update-ide
43+
sudo add-apt-repository ppa:kisak/turtle -y
44+
sudo apt-get install --no-install-recommends libxkbcommon-x11-0 xvfb libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
4245
4346
- name: Build the book
44-
run: cargo xtask docs --no-rust-docs
47+
run: xvfb-run cargo xtask docs --no-rust-docs
4548

4649
- name: Deploy to GitHub Pages
4750
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging'

0 commit comments

Comments
 (0)