From faa197be3b0360249b1bc5cb62b5206980439259 Mon Sep 17 00:00:00 2001 From: Jean Cochrane Date: Tue, 17 Dec 2024 11:59:42 -0600 Subject: [PATCH] Fix pkgdown build on GitHub Actions for new Ubuntu 24.04 runners (#48) --- .github/workflows/pkgdown.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index cfbad37..42dc327 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -57,7 +57,11 @@ jobs: - name: Prepare Mermaid assets for docs run: | for file in inst/mermaid/*.mmd; do - mmdc -i "$file" -o "${file/.mmd/.svg}" + # Confine the mermaid process to an AppArmor profile, necessary on + # Ubuntu >= 23.10 to work around new AppArmor rules that block the + # Puppeteer sandbox (used by mermaid) from working. See: + # https://github.com/mermaid-js/mermaid-cli/issues/730#issuecomment-2408615110 + aa-exec --profile=chrome mmdc -i "$file" -o "${file/.mmd/.svg}" done mkdir -p docs/mermaid mv inst/mermaid/*.svg docs/mermaid