From ab705de2ff840111ecd5fd1f944dfb3fee457e47 Mon Sep 17 00:00:00 2001 From: Asger Nyman Christiansen Date: Thu, 30 Jan 2025 10:58:45 +0100 Subject: [PATCH] Fix headless CI (#534) * Fix? * test * Close after 500ms * Revert "Close after 500ms" This reverts commit c1acdc637da06b7532117d491a54e7638a0b5912. * Revert "test" This reverts commit 84898d9923b4268bcdcdc6617f41220eb5df79d9. * Second try * Fix check * Update rust.yml * Revert "Update rust.yml" This reverts commit 088dd6fe1b5a0493494be4576085deed75910ac1. --- .github/workflows/rust.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7e7ca720c..3fa5c739a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -32,6 +32,9 @@ jobs: components: rustfmt, clippy override: true + - if: startsWith(matrix.os, 'ubuntu') + run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev + - name: Check uses: actions-rs/cargo@v1 with: @@ -83,6 +86,6 @@ jobs: toolchain: stable override: true - - run: sudo apt-get update && sudo apt-get install -y xvfb + - run: sudo apt-get update && sudo apt-get install -y xvfb libfontconfig1-dev - run: xvfb-run -a cargo run --example headless --features="headless"