Skip to content

Commit

Permalink
Update release compression
Browse files Browse the repository at this point in the history
  • Loading branch information
scottypate committed Sep 23, 2024
1 parent 600ab33 commit 879aebc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
CGO_ENABLED: 1
run: |
CGO_ENABLED=1 CGO_LDFLAGS="-L/usr/lib" go build -o output/${{ matrix.os }}_${{ matrix.arch }}/hypha --ldflags="-extldflags=-static" -tags osusergo,netgo main.go
tar -czvf output/${{ matrix.os }}_${{ matrix.arch }}/hypha-${{ matrix.os }}_${{ matrix.arch }}-${{ github.event.release.tag_name }}.tar.gz output/${{ matrix.os }}_${{ matrix.arch }}/hypha
tar -C output/${{ matrix.os }}_${{ matrix.arch }} -czvf hypha-${{ matrix.os }}_${{ matrix.arch }}-${{ github.event.release.tag_name }}.tar.gz output/${{ matrix.os }}_${{ matrix.arch }}/hypha
echo "Built for $GOOS $GOARCH"
- name: Upload binaries
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
CGO_ENABLED: 1
run: |
CGO_ENABLED=1 CGO_LDFLAGS="-L/usr/lib" go build -o output/${{ matrix.os }}_${{ matrix.arch }}/hypha main.go
tar -czvf output/${{ matrix.os }}_${{ matrix.arch }}/hypha-${{ matrix.os }}_${{ matrix.arch }}-${{ github.event.release.tag_name }}.tar.gz output/${{ matrix.os }}_${{ matrix.arch }}/hypha
tar -C output/${{ matrix.os }}_${{ matrix.arch }} -czvf hypha-${{ matrix.os }}_${{ matrix.arch }}-${{ github.event.release.tag_name }}.tar.gz output/${{ matrix.os }}_${{ matrix.arch }}/hypha
echo "Built for $GOOS $GOARCH"
- name: Upload binaries
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,19 @@ Hypha is currently in the alpha stage and not all features are available. We are

## Installation

To install Hypha, you need to have Go 1.23.0 or later installed on your system. Then, you can build the application using the following commands:
### Download pre-built binary

You can download a pre-built binary for your operating system and architecture from the [GitHub Releases](https://github.com/hyphasql/hypha/releases) page. The example below shows an install for v0.0.1 for MacOS.

```bash
curl -L https://github.com/hyphasql/hypha/releases/download/v0.0.1/hypha-darwin_arm64-v0.0.1.tar.gz -o hypha.tar.gz
tar -xvzf hypha.tar.gz
sudo mv hypha /usr/local/bin
```

### Build from source

To build Hypha from source, you need to have Go 1.23.0 or later installed on your system. Then, you can build the application using the following commands:

```bash
git clone https://github.com/yourusername/hypha.git
Expand Down

0 comments on commit 879aebc

Please sign in to comment.