Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 1
run: |
go build -o ./build/probe-${{ matrix.os }}-${{ matrix.arch }} ./cmd
go build -o ./build/probe-${{ matrix.os }}-${{ matrix.arch }} ./cmd/probe
- name: list result
run: ls -la ./build
- name: Upload Artifact
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:
cd /src
mkdir assets
git config --global --add safe.directory /src
/crossbuild -p ${{matrix.os}}/${{matrix.arch}} --build-cmd "go build -o ./assets/probe-${{matrix.os}}-${{matrix.arch}} ./cmd"
/crossbuild -p ${{matrix.os}}/${{matrix.arch}} --build-cmd "go build -o ./assets/probe-${{matrix.os}}-${{matrix.arch}} ./cmd/probe"
ls -l ./assets
- name: list result
run: ls -la ./assets/probe-${{matrix.os}}-${{matrix.arch}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 1
run: |
go build -o build/probe-${{ matrix.os }}-${{ matrix.arch }} ./cmd
go build -o build/probe-${{ matrix.os }}-${{ matrix.arch }} ./cmd/probe
- name: list result
run: ls -la build

Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
cd /src
mkdir assets
git config --global --add safe.directory /src
/crossbuild -p ${{matrix.os}}/${{matrix.arch}} --build-cmd "go build -o ./assets/probe-${{matrix.os}}-${{matrix.arch}} ./cmd"
/crossbuild -p ${{matrix.os}}/${{matrix.arch}} --build-cmd "go build -o ./assets/probe-${{matrix.os}}-${{matrix.arch}} ./cmd/probe"
ls -l ./assets
- name: list result
run: |
Expand Down
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
.PHONY: default
default: lint test
default: probe test

.PHONY: test
test:
nice go build -o probe ./cmd
test: probe
./probe probe google.com:443

.PHONY: all
all: probe probe-linux-amd64 probe-linux-arm64

sources = $(shell find . -name '*.go')
probe: $(sources)
go build -o $@ ./cmd
go build -o $@ ./cmd/probe

probe-linux-amd64:
GOARCH=amd64 GOOS=linux go build -o $@ ./cmd
GOARCH=amd64 GOOS=linux go build -o $@ ./cmd/probe

probe-linux-arm64:
GOARCH=arm64 GOOS=linux go build -o $@ ./cmd
GOARCH=arm64 GOOS=linux go build -o $@ ./cmd/probe

.PHONY: lint
lint:
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,26 @@ I prefered `drill` (similar to `dig`) to check DNS resolving, `telnet` to check

To smoothen the process, I wrote `thz/probe` to do all these checks in one go and provide exactly the relevant details for every step.

## Install / Get it

Download the latest binary from the GitHub release page: https://github.com/thz/probe/releases/latest

Alternatively, you can:
```
# build it yourself (without cloning)
GOBIN=$(pwd) go install github.com/thz/probe/cmd/probe@latest
./probe google.com:443

# build it yourself
git clone https://github.com/thz/probe
cd probe
make probe test

# use docker
docker pull thzpub/probe # optional
docker run --rm -ti thzpub/probe google.com:443
```

## Probe Usage

```
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading