Skip to content

Commit

Permalink
chore: Add preview section to installation docs (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Mar 23, 2023
1 parent 8511833 commit 1df142e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
uses: actions/checkout@v2

- name: Replace download links
# This checks the "grain" prefix so our preview links aren't updated
run: |
sed -E -i 's|(https://github\.com/grain-lang/grain/releases/download/)[^/]+(/)|\1${{ github.event.inputs.tag }}\2|g' src/getting_grain.md
sed -E -i 's|(https://github\.com/grain-lang/grain/releases/download/)grain[^/]+(/)|\1${{ github.event.inputs.tag }}\2|g' src/getting_grain.md
- name: Checkout Grain
uses: actions/checkout@v2
Expand Down
36 changes: 36 additions & 0 deletions src/getting_grain.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,42 @@ curl -LO https://github.com/grain-lang/grain/releases/download/grain-v0.5.13/gra

You'll either want to put it into your path or keep it inside your project and invoke with `.\grain-win-x64.exe`.

## Previews

We also provide Preview binaries for developers that want to live on the bleeding edge.

**Note:** These are built on almost every commit to our main branch, so they should be considered unstable and the website documentation likely won't match up! Using these binaries successfully requires following the development of Grain closely and/or reviewing our [rolling changelog](https://github.com/grain-lang/grain/pulls?q=is%3Aopen+is%3Apr+label%3A%22autorelease%3A+pending%22).

### MacOS x64 - Preview

You can [download it](https://github.com/grain-lang/grain/releases/download/preview/grain-mac-x64) directly from GitHub or using `curl`.

```sh
sudo curl -L --output /usr/local/bin/grain \
https://github.com/grain-lang/grain/releases/download/preview/grain-mac-x64 \
&& sudo chmod +x /usr/local/bin/grain
```

### Linux x64 - Preview

You can [download it](https://github.com/grain-lang/grain/releases/download/preview/grain-linux-x64) directly from GitHub or using `curl`.

```sh
sudo curl -L --output /usr/local/bin/grain \
https://github.com/grain-lang/grain/releases/download/preview/grain-linux-x64 \
&& sudo chmod +x /usr/local/bin/grain
```

### Windows x64 - Preview

You can [download it](https://github.com/grain-lang/grain/releases/download/preview/grain-win-x64.exe) directly from GitHub or using `curl`.

```batch
curl -LO https://github.com/grain-lang/grain/releases/download/preview/grain-win-x64.exe
```

You'll either want to put it into your path or keep it inside your project and invoke with `.\grain-win-x64.exe`.

## Community

These installation methods are maintained by the community—they're not supplied by the Grain team, but you may find them to be useful alternatives to the official distributions.
Expand Down

0 comments on commit 1df142e

Please sign in to comment.