From e5db75415a1896b4c2d3d62a3c520d218e0b5be4 Mon Sep 17 00:00:00 2001 From: Jeroen Bobbeldijk Date: Fri, 24 May 2024 11:58:23 +0200 Subject: [PATCH 1/2] Intentionally break webassembly build --- .github/workflows/go.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 80d1cdeb..efeab6ff 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -100,6 +100,7 @@ jobs: go: [ "1.20", "1.21", "1.22" ] env: PDFIUM_EXPERIMENTAL_GO_VERSION: "1.22" + CGO_ENABLED: "0" runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 From d8ff969ea11bbc87f3b131b71e27f237ad0b453d Mon Sep 17 00:00:00 2001 From: Jeroen Bobbeldijk Date: Fri, 24 May 2024 12:00:23 +0200 Subject: [PATCH 2/2] Fix WebAssembly --- internal/implementation_webassembly/fpdf_annot.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/implementation_webassembly/fpdf_annot.go b/internal/implementation_webassembly/fpdf_annot.go index a45b9f21..f4892044 100644 --- a/internal/implementation_webassembly/fpdf_annot.go +++ b/internal/implementation_webassembly/fpdf_annot.go @@ -1,6 +1,5 @@ package implementation_webassembly -import "C" import ( "errors" "unsafe"