Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nightly installation instructions #303

Merged
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion _layouts/install.html
Expand Up @@ -9,7 +9,7 @@
<h1 class="center"><a href="/install">Install</a></h1>
<h1 class="distro-title">{{ page.subtitle }}</h1>
<div class="row">
<div class="col offset-m1 m10 s12">
<div class="col offset-m1 m10 s12 post-layout">
{{ content }}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion install/from_targz.md
Expand Up @@ -4,7 +4,7 @@ subtitle: From tar.gz

You can download Crystal in a standalone `.tar.gz` file with everything you need to get started.

The latest files can be found on the [Releases page at GitHub](https://github.com/crystal-lang/crystal/releases).
The latest files can be found on the [Releases page at GitHub](https://github.com/crystal-lang/crystal/releases). Nightly builds are available as well at [https://crystal-lang.org/install/nightlies/](/install/nightlies).

Download the file for your platform and uncompress it. Inside it you will have a `bin/crystal` executable.

Expand Down
5 changes: 5 additions & 0 deletions install/index.html
Expand Up @@ -21,6 +21,11 @@
</div>
</div>
</div>
<div class="row" style="padding-top: 5em;">
<div class="col offset-m1 m10 s12 center">
<a href="/install/nightlies" class="btn btn-flat">Installation instructions for nightly builds</a>
</div>
</div>
</div>

<br />
Expand Down
62 changes: 62 additions & 0 deletions install/nightlies.md
@@ -0,0 +1,62 @@
---
subtitle: Nightly Builds
---

Nightly builds of the Crystal compiler are available from these locations:

## Tarball

Tarballs with nightly builds are available for the following platforms:

* linux x86_64: [`https://artifacts.crystal-lang.org/dist/crystal-nightly-linux-x86_64.tar.gz`](https://artifacts.crystal-lang.org/dist/crystal-nightly-linux-x86_64.tar.gz)
* darwin universal (x86_64 and aarch64): [`https://artifacts.crystal-lang.org/dist/crystal-nightly-darwin-universal.tar.gz`](https://artifacts.crystal-lang.org/dist/crystal-nightly-darwin-universal.tar.gz)
* windows x86_64: [`https://nightly.link/crystal-lang/crystal/workflows/win/master/crystal.zip`](https://nightly.link/crystal-lang/crystal/workflows/win/master/crystal.zip)

See [*Install from tar.gz*](/install/from_targz) for further instructions.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for the italics here? (more a curiosity than a concern)

Suggested change
See [*Install from tar.gz*](/install/from_targz) for further instructions.
See [Install from tar.gz](/install/from_targz) for further instructions.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cause it's a page title 🤷


## Docker

Nightly builds are available on the `nightly` tag on the [Docker repository of Crystal](https://hub.docker.com/r/crystallang/crystal/).

```shell
docker pull crystallang/crystal:nightly
```

## Homebrew

The [homebrew formula for Crystal](https://formulae.brew.sh/formula/crystal) provides the `HEAD` version for building from the `master` branch.

```shell
brew install crystal --HEAD
```

## Snapcraft

Nightly builds are available on the `edge` channel of the [Snapcraft repository of Crystal](https://snapcraft.io/crystal).

```shell
snap install crystal --classic --edge
```

## Scoop

Nightly builds are available via the package manager [Scoop](https://scoop.sh/) on Windows in the bucket [`https://github.com/neatorobito/scoop-crystal`](https://github.com/neatorobito/scoop-crystal):

```shell
scoop bucket add crystal-preview https://github.com/neatorobito/scoop-crystal
scoop install crystal-nightly
```

## From Sources

See [*Build from sources*](/install/from_sources) for further instructions and pull the content of the `master` branch, instead of a tagged release version.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Suggested change
See [*Build from sources*](/install/from_sources) for further instructions and pull the content of the `master` branch, instead of a tagged release version.
See [Build from sources](/install/from_sources) for further instructions and pull the content of the `master` branch, instead of a tagged release version.


```shell
wget https://github.com/crystal-lang/crystal/archive/refs/heads/master.zip
# or
git clone git@github.com:crystal-lang/crystal
```

## GitHub Actions

Nightly builds are available in GitHub Actions with the [install-crystal](https://github.com/crystal-lang/install-crystal) action.