1
1
mirror of https://github.com/oxalica/nil.git synced 2024-08-16 22:20:31 +03:00

Clarify build requirements and add CI

This commit is contained in:
oxalica 2022-09-27 22:17:40 +08:00
parent 5f1eab84a6
commit ac84014360
6 changed files with 14 additions and 0 deletions

View File

@ -45,6 +45,9 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
channel: [stable, beta]
include:
- os: ubuntu-latest
channel: "1.62.0"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout

View File

@ -22,8 +22,15 @@ and are regularly updated.
[nixpkgs]: https://github.com/NixOS/nixpkgs
Note: This package requires a relatively new version of Rust to compile.
You need at least `nixpkgs-unstable` to build it.
- If you use `nix-env`, run `nix-env -iA nixpkgs.nil`
- If you use `nix profile`, run `nix profile install nixpkgs#nil`
- If you want to compile it from source.
1. Install stable Rust toolchain >= 1.62
1. Install `nix` >= 2.4 and make the binary `nix` available from your `PATH`.
1. Build and install via `cargo install --git https://github.com/oxalica/nil nil`
## Flake

View File

@ -3,6 +3,7 @@ name = "builtin"
version = "0.0.0"
edition = "2021"
license = "MIT OR Apache-2.0"
rust-version = "1.62"
[dependencies]
phf = "0.11.1"

View File

@ -3,6 +3,7 @@ name = "ide"
version = "0.0.0"
edition = "2021"
license = "MIT OR Apache-2.0"
rust-version = "1.62"
[dependencies]
builtin = { path = "../builtin" }

View File

@ -3,6 +3,7 @@ name = "nil"
version = "0.0.0"
edition = "2021"
license = "MIT OR Apache-2.0"
rust-version = "1.62"
[dependencies]
crossbeam-channel = "0.5.6"

View File

@ -3,6 +3,7 @@ name = "syntax"
version = "0.0.0"
edition = "2021"
license = "MIT OR Apache-2.0"
rust-version = "1.62"
[dependencies]
once_cell = "1.13.0"