diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3a4e09b3..85c0a660 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,8 @@ on: - master - staging - trying + pull_request: + branches: [master] schedule: - cron: '0 2 * * *' # To test `wasmer-nightly` with `libwasmer_archive_name`. diff --git a/wasmer/cgo.go b/wasmer/cgo.go index a78c51f0..9895eed6 100644 --- a/wasmer/cgo.go +++ b/wasmer/cgo.go @@ -7,7 +7,7 @@ package wasmer // // #cgo linux,amd64 LDFLAGS: -Wl,-rpath,${SRCDIR}/packaged/lib/linux-amd64 -L${SRCDIR}/packaged/lib/linux-amd64 // //#cgo linux,arm64 LDFLAGS: -Wl,-rpath,${SRCDIR}/packaged/lib/linux-aarch64 -L${SRCDIR}/packaged/lib/linux-aarch64 -// #cgo darwin,amd64 LDFLAGS: -Wl,-rpath,${SRCDIR}/packaged/lib/darwin-amd64 -L${SRCDIR}/packaged/lib/darwin-amd64 +// #cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/packaged/lib/darwin-amd64 -lm -ldl // #cgo darwin,arm64 LDFLAGS: -Wl,-rpath,${SRCDIR}/packaged/lib/darwin-aarch64 -L${SRCDIR}/packaged/lib/darwin-aarch64 // // #include diff --git a/wasmer/packaged/lib/darwin-amd64/libwasmer.a b/wasmer/packaged/lib/darwin-amd64/libwasmer.a new file mode 100644 index 00000000..c0e3cde8 Binary files /dev/null and b/wasmer/packaged/lib/darwin-amd64/libwasmer.a differ diff --git a/wasmer/packaged/lib/darwin-amd64/libwasmer.dylib b/wasmer/packaged/lib/darwin-amd64/libwasmer.dylib deleted file mode 100755 index 10870fbb..00000000 Binary files a/wasmer/packaged/lib/darwin-amd64/libwasmer.dylib and /dev/null differ