Skip to content

Commit

Permalink
test: use forked examples, darwin amd64 import
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Sep 11, 2024
1 parent 0087c04 commit e0e97d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
APP_SHA: ${{ github.sha }}
APP_REF: ${{ github.ref }}
# LD_LIBRARY_PATH: /tmp
# PACT_GO_LIB_DOWNLOAD_PATH: /tmp
PACT_GO_LIB_DOWNLOAD_PATH: /tmp # left in for existing installer test
LOG_LEVEL: debug
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ install: bin

pact: clean docker
@echo "--- 🔨 Running Pact examples"
go test -v -tags=consumer -count=1 github.com/pact-foundation/pact-go/v2/examples/...
go test -v -tags=consumer -count=1 github.com/you54f/pact-go/v2/examples/...
make publish
go test -v -timeout=30s -tags=provider -count=1 github.com/pact-foundation/pact-go/v2/examples/...
go test -v -timeout=30s -tags=provider -count=1 github.com/you54f/pact-go/v2/examples/...
pact_local: clean download_plugins
@echo "--- 🔨 Running Pact examples"
go test -v -tags=consumer -count=1 github.com/pact-foundation/pact-go/v2/examples/...
SKIP_PUBLISH=true go test -v -timeout=30s -tags=provider -count=1 github.com/pact-foundation/pact-go/v2/examples/...
go test -v -tags=consumer -count=1 github.com/you54f/pact-go/v2/examples/...
SKIP_PUBLISH=true go test -v -timeout=30s -tags=provider -count=1 github.com/you54f/pact-go/v2/examples/...

publish:
@echo "-- 📃 Publishing pacts"
Expand Down
2 changes: 1 addition & 1 deletion internal/native/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package native

/*
#cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/libs/macos-aarch64 -L/tmp -L/usr/local/lib -Wl,-rpath -Wl,/tmp -Wl,-rpath -Wl,${SRCDIR}/libs/macos-aarch64 -Wl,-rpath -Wl,/usr/local/lib -lpact_ffi
#cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/libs/macos-x86_64 -L/tmp -L/usr/local/lib -Wl,-rpath -Wl,/tmp -Wl,-rpath -Wl,${SRCDIR}/libs/macos-x86_64 -Wl,-rpath -Wl,/usr/local/lib -lpact_ffi
#cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/libs/macos-x86_64 -L/tmp -L/usr/local/lib -Wl,-rpath -Wl,/tmp -Wl,-rpath -Wl,${SRCDIR}/libs/macos-x86_64 -Wl,-rpath -Wl,/usr/local/lib -lpact_ffi
#cgo windows,amd64 LDFLAGS: -L${SRCDIR}/libs/windows-x86_64 -lpact_ffi
#cgo linux,arm64 LDFLAGS: -L${SRCDIR}/libs/linux-aarch64 -L/tmp -L/opt/pact/lib -L/usr/local/lib -Wl,-rpath -Wl,${SRCDIR}/libs/linux-aarch64 -Wl,-rpath -Wl,/opt/pact/lib -Wl,-rpath -Wl,/tmp -Wl,-rpath -Wl,/usr/local/lib -lpact_ffi
#cgo linux,amd64 LDFLAGS: -L${SRCDIR}/libs/linux-x86_64 -L/tmp -L/opt/pact/lib -L/usr/local/lib -Wl,-rpath -Wl,${SRCDIR}/libs/linux-x86_64 -Wl,-rpath -Wl,/opt/pact/lib -Wl,-rpath -Wl,/tmp -Wl,-rpath -Wl,/usr/local/lib -lpact_ffi
Expand Down

0 comments on commit e0e97d5

Please sign in to comment.