Skip to content

Commit

Permalink
Prepare for release 0.1.0
Browse files Browse the repository at this point in the history
- Update target architectures (now pre-compile for linux and darwin
  arm64 and amd64)
- Update installation instructions
  • Loading branch information
danielleontiev committed Aug 6, 2022
1 parent df52429 commit 56dbc7e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@ cover:
go test -coverprofile coverage.out ./...
go tool cover -html=coverage.out

artifacts: darwin linux windows
artifacts: darwin linux

darwin:
GOOS=darwin GOARCH=amd64 go build -o ./out/darwin/neojhat .
GOOS=darwin GOARCH=amd64 go build -o ./out/darwin/amd64/neojhat .
GOOS=darwin GOARCH=arm64 go build -o ./out/darwin/arm64/neojhat .

linux:
GOOS=linux GOARCH=amd64 go build -o ./out/linux/neojhat .
GOOS=linux GOARCH=amd64 go build -o ./out/linux/amd64/neojhat .
GOOS=linux GOARCH=arm64 go build -o ./out/linux/arm64/neojhat .

release: artifacts
tar -cavf ./out/neojhat.darwin.amd64.tar.gz -C ./out/darwin/amd64 neojhat
tar -cavf ./out/neojhat.darwin.arm64.tar.gz -C ./out/darwin/arm64 neojhat
tar -cavf ./out/neojhat.linux.amd64.tar.gz -C ./out/linux/amd64 neojhat
tar -cavf ./out/neojhat.linux.arm64.tar.gz -C ./out/linux/arm64 neojhat

windows:
GOOS=windows GOARCH=amd64 go build -o ./out/windows/neojhat.exe .
29 changes: 21 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,33 @@ with huge dump files that do not fit into computer RAM.

## Install

### Obtaining pre-compiled binary

Go to **Actions**, select the latest successful pipeline, click **Summary** and download `neojhat.zip`
from **Artifacts** section.

### Compile and install with `go install`

1. Make sure you have `Go` installed. Refer to https://go.dev/dl/ for installation instructions.
2. Run the command
```sh
go install github.com/danielleontiev/neojhat@latest
```

2. Run the command if you would like to get the latest development version

```sh
go install github.com/danielleontiev/neojhat@latest
```

or run this command to obtain the latest stable release
```sh
go install github.com/danielleontiev/neojhat@v0.1.0
```

3. Add `$USER/go/bin` to your `$PATH` or run directly from the directory

### Download pre-compiled release binary from Releases page

Go to [Releases](https://github.com/danielleontiev/neojhat/releases) and pick the binary from there.

### Obtaining pre-compiled development version binary

Go to [Actions](https://github.com/danielleontiev/neojhat/actions), select the
latest successful workflow and download `neojhat` from **Artifacts** section.

## Help

```sh
Expand Down

0 comments on commit 56dbc7e

Please sign in to comment.