From 611ceb0309d26c4645dea857a5cd7728136279e8 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Sun, 27 Feb 2022 19:21:12 +0100 Subject: [PATCH] Init nix ci (#1141) * ci(nix): add ci checks for nix * nix flake metadata && * nix build * fix: update `Cargo.lock` --- .github/workflows/nix.yml | 27 +++++++++++++++++++++++++++ Cargo.lock | 8 ++++---- 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/nix.yml diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 00000000..84dbd324 --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,27 @@ +name: nix + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + nix: + runs-on: ubuntu-latest + name: nix-build + timeout-minutes: 15 + steps: + - uses: actions/checkout@v2.4.0 + with: + # Nix Flakes doesn't work on shallow clones + fetch-depth: 0 + - uses: cachix/install-nix-action@v16 + with: + extra_nix_config: | + experimental-features = nix-command flakes + fetch-depth: 0 + - run: nix flake check --print-build-logs --show-trace + - run: nix build diff --git a/Cargo.lock b/Cargo.lock index 63cf3f40..281e232f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1158,9 +1158,9 @@ checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" [[package]] name = "lev_distance" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d234d89ecf5621c935b69a4c7266c9a634a95e465081682be47358617ce825b" +checksum = "72d9d1bd215936bc8647ad92986bb56f3f216550b53c44ab785e3217ae33625e" [[package]] name = "libc" @@ -2115,9 +2115,9 @@ dependencies = [ [[package]] name = "suggestion" -version = "0.1.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "015336207b7660be204f5012fcdb84b3ff35442b26cea77ebe6103929a56e54b" +checksum = "64d6669311fea55a1f867fdc61afc8690e9f1d93829179a617575cc6083136e3" dependencies = [ "lev_distance", ]