Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,27 @@ jobs:
with:
go-version: ${{ matrix.go }}
- run: go vet
- run: |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:build/linux-x86_64/
go test
name: Run go test
if: matrix.os == 'ubuntu-latest'
- run: |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:build/linux-x86_64/
go test -tags debug
name: Run go test -tags debug
if: matrix.os == 'ubuntu-latest'
- run: |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:build/linux-x86_64/
go test -tags debug
name: Run go test -tags debug
if: matrix.os == 'ubuntu-latest'
- run: go test
if: matrix.os != 'ubuntu-latest'
- run: go test -tags debug
if: matrix.os != 'ubuntu-latest'
- run: go test -tags debug
if: matrix.os != 'ubuntu-latest'
env:
GODEBUG: cgocheck=2
GOGC: 1
Expand Down Expand Up @@ -81,7 +99,9 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: '1.18'
- run: go test -coverprofile cover.out ./...
- run: |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:build/linux-x86_64/
go test -coverprofile cover.out ./...
- run: go tool cover -html=cover.out -o coverage.html
- uses: actions/upload-artifact@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cc_library(
name = "wasmtime",
srcs = select({
"@io_bazel_rules_go//go/platform:darwin_amd64": ["build/macos-x86_64/libwasmtime.a"],
"@io_bazel_rules_go//go/platform:linux_amd64": ["build/linux-x86_64/libwasmtime.a"],
"@io_bazel_rules_go//go/platform:linux_amd64": ["build/linux-x86_64/libwasmtime.so"],
"@io_bazel_rules_go//go/platform:windows_amd64": ["build/windows-x86_64/libwasmtime.a"],
}),
hdrs = glob(["build/include/**/*.h"]),
Expand Down
2 changes: 0 additions & 2 deletions ci/download-wasmtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@
os.remove(dylib)
for dylib in glob.glob("build/**/*.dylib"):
os.remove(dylib)
for dylib in glob.glob("build/**/*.so"):
os.remove(dylib)

for subdir, dirs, files in os.walk("build"):
dir_name = os.path.basename(os.path.normpath(subdir))
Expand Down