crystal-build is an crenv plugin that provides an crenv install command.
Work is underway on a rewrite of crystal-build in Crystal. It is working on a rudimentary level, and depending on your needs, may be a suitable replacement for this version of crystal-build, if you are having issues with it. The rewrite is largely motivated by the previous maintainer no longer being able to maintain and find contributors for the Perl codebase. For now, pull requests are still being accepted for this repository.
$ git clone https://github.com/pine/crystal-build.git ~/.crenv/plugins/crystal-build
crystal-build currently supports only download a compiled tarball.
To install a Crystal version for use with crenv, run crenv install
with the exact name of the version you want to install. For example,
crenv install 0.15.0
Crystal versions will be installed into a directory of the same name under ~/.crenv/versions
.
To see a list of all available Crystal versions, run crenv install --list
.
CRYSTAL_BUILD_CACHE_PATH
, if set, specifies a directory to use for caching downloaded package files.
Tests are executed using Carton:
$ carton install
$ carton exec -- prove -r t # all
$ carton exec -- prove t/<dir>/<file>.t
- 1.3.0 - Support FreeBSD
- 1.2.0 - Support installing Crystal from Homebrew bottles
- 1.1.0 - Support shards auto-install
- 1.0.0 - First release
MIT License