From 18be17fda10a26046bc6eed63f0da82dc022fc13 Mon Sep 17 00:00:00 2001 From: Benjamin Eckel Date: Wed, 13 Sep 2023 15:05:38 -0500 Subject: [PATCH] ci: fix basic --- .gitignore | 18 ++++++++++++++++++ examples/basic.zig | 2 +- wasm/code-functions.wasm | Bin 0 -> 18635 bytes 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100755 wasm/code-functions.wasm diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b4957c --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +# This file is for zig-specific build artifacts. +# If you have OS-specific or editor-specific files to ignore, +# such as *.swp or .DS_Store, put those in your global +# ~/.gitignore and put this in your ~/.gitconfig: +# +# [core] +# excludesfile = ~/.gitignore +# +# Cheers! +# -andrewrk + +zig-cache/ +zig-out/ +/release/ +/debug/ +/build/ +/build-*/ +/docgen_tmp/ \ No newline at end of file diff --git a/examples/basic.zig b/examples/basic.zig index 218d07e..67cf87a 100644 --- a/examples/basic.zig +++ b/examples/basic.zig @@ -23,7 +23,7 @@ pub fn main() !void { const allocator = gpa.allocator(); _ = sdk.setLogFile("extism.log", .Debug); - const wasmfile_manifest = manifest.WasmFile{ .path = "../wasm/code-functions.wasm" }; + const wasmfile_manifest = manifest.WasmFile{ .path = "wasm/code-functions.wasm" }; const man = .{ .wasm = &[_]manifest.Wasm{.{ .wasm_file = wasmfile_manifest }} }; var f = Function.init( "hello_world", diff --git a/wasm/code-functions.wasm b/wasm/code-functions.wasm new file mode 100755 index 0000000000000000000000000000000000000000..8b293dbc43421eed99bdfb9802cf67e14d0c30ac GIT binary patch literal 18635 zcmch936NaJd0xM3=FPmB+1dLT9Q~d^3J|!!Qi1>oqQvdR%>!Ua+6GeVrn2jKRnDTaVifI zLr;m&afr(~f$om7YM~=NP#t;Fszs@3AyoEcUI3}aWbt#( z*;Nifz@(ezQ{^tH*L1f8Nz!a7C&shx*453M_rGyiNB0=Iq;A}{{|5R^gf0*!j0I{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