Skip to content

Commit

Permalink
Added bulk memory patch to resolve build failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
hbh7 committed Dec 13, 2024
1 parent aab7808 commit 86c3e39
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions teleport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ pipeline:
with:
deps: github.com/golang-jwt/jwt/v4@v4.5.1

- uses: patch
with:
patches: bulk-memory.patch

- runs: |
mkdir -p "${{targets.contextdir}}"/var/lib/teleport
mkdir -p "${{targets.contextdir}}"/usr/local/bin
Expand Down
14 changes: 14 additions & 0 deletions teleport/bulk-memory.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/web/packages/teleport/src/ironrdp/Cargo.toml b/web/packages/teleport/src/ironrdp/Cargo.toml
index ddcc4db..dc5d76c 100644
--- a/web/packages/teleport/src/ironrdp/Cargo.toml
+++ b/web/packages/teleport/src/ironrdp/Cargo.toml
@@ -5,6 +5,9 @@ edition.workspace = true
license.workspace = true
publish.workspace = true

+[package.metadata.wasm-pack.profile.release]
+wasm-opt = ["-O", "--enable-bulk-memory"]
+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]

0 comments on commit 86c3e39

Please sign in to comment.