From 7866288cde469804fcbd22f5c2babad098942b2f Mon Sep 17 00:00:00 2001 From: makspll Date: Mon, 3 Mar 2025 14:53:44 +0000 Subject: [PATCH] chore: fix mdbook deploy --- .github/workflows/mdbook.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mdbook.yml b/.github/workflows/mdbook.yml index 58ab545b79..ab68716504 100644 --- a/.github/workflows/mdbook.yml +++ b/.github/workflows/mdbook.yml @@ -37,11 +37,14 @@ jobs: - name: Rust Cache uses: Swatinem/rust-cache@v2.7.3 - - name: Install mdBook - run: cargo xtask init --dont-update-ide + - name: Setup xtask & GPU drivers + run: | + cargo xtask init --dont-update-ide + sudo add-apt-repository ppa:kisak/turtle -y + sudo apt-get install --no-install-recommends libxkbcommon-x11-0 xvfb libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers - name: Build the book - run: cargo xtask docs --no-rust-docs + run: xvfb-run cargo xtask docs --no-rust-docs - name: Deploy to GitHub Pages if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging'