We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4341bf3 commit e76497fCopy full SHA for e76497f
2 files changed
.github/workflows/ci.yml
@@ -23,6 +23,9 @@ jobs:
23
- name: Verify benchmarks compile
24
run: cargo bench --no-run
25
26
+ - name: Install Chrome
27
+ run: sudo apt-get update && sudo apt-get install -y chromium-browser
28
+
29
- name: Test (HTML → PDF)
30
run: |
31
echo "<h1>ci</h1>" > /tmp/test.html
src/lib.rs
@@ -60,8 +60,10 @@ impl PdfRenderer {
60
/// Launch a headless Chrome browser.
61
pub fn new() -> Result<Self> {
62
let _span = info_span!("browser_launch").entered();
63
+ let sandbox = !std::env::var("CI").is_ok_and(|v| !v.is_empty());
64
let options = LaunchOptions {
65
headless: true,
66
+ sandbox,
67
..LaunchOptions::default()
68
};
69
let browser = Browser::new(options).context("failed to launch headless Chrome")?;
0 commit comments