Skip to content

Commit

Permalink
Try #200:
Browse files Browse the repository at this point in the history
  • Loading branch information
bors[bot] authored Feb 12, 2021
2 parents aef2e6d + e7164e1 commit b35a056
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:

- id: 'darwin-amd64'
os: 'macos-latest'

- id: 'windows-amd64'
os: 'windows-latest'
fail-fast: true

runs-on: ${{ matrix.target.os }}
Expand Down
3 changes: 2 additions & 1 deletion wasmer/cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ package wasmer
// #cgo CFLAGS: -I${SRCDIR}/packaged/include
// #cgo LDFLAGS: -lwasmer
//
// #cgo darwin,amd64 LDFLAGS: -Wl,-rpath,${SRCDIR}/packaged/lib/darwin-amd64 -L${SRCDIR}/packaged/lib/darwin-amd64
// #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 windows,amd64 LDFLAGS: -Wl,-rpath,${SRCDIR}/packaged/lib/windows-amd64 -L${SRCDIR}/packaged/lib/windows-amd64
//
// #include <wasmer_wasm.h>
import "C"
Expand Down
1 change: 1 addition & 0 deletions wasmer/packaged/lib/dummy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ import (
_ "github.com/wasmerio/wasmer-go/wasmer/packaged/lib/darwin-amd64"
_ "github.com/wasmerio/wasmer-go/wasmer/packaged/lib/linux-aarch64"
_ "github.com/wasmerio/wasmer-go/wasmer/packaged/lib/linux-amd64"
_ "github.com/wasmerio/wasmer-go/wasmer/packaged/lib/windows-amd64"
)
2 changes: 2 additions & 0 deletions wasmer/packaged/lib/windows-amd64/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// See https://github.com/golang/go/issues/26366.
package windows_amd64
Binary file added wasmer/packaged/lib/windows-amd64/wasmer.dll
Binary file not shown.

0 comments on commit b35a056

Please sign in to comment.