From 1d6ec530ca4b941c0997c27244eaefea453ff0a4 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sun, 19 Sep 2021 22:03:39 -0700 Subject: [PATCH] .github: Add job to test flake-compat build --- .github/workflows/build.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a338cb0..02e1bcb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,14 +9,26 @@ jobs: - uses: actions/checkout@v2.3.4 - uses: cachix/install-nix-action@v13 with: - install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.4pre20210604_8e6ee1b/install + install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.4pre20210823_af94b54/install extra_nix_config: | experimental-features = nix-command flakes + - run: nix flake check + - run: nix build + + build-2.3: + - uses: actions/checkout@v2.3.4 + - uses: cachix/install-nix-action@v13 - run: nix-build + tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.3.4 - - uses: cachix/install-nix-action@v12 + - uses: cachix/install-nix-action@v13 + with: + install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.4pre20210823_af94b54/install + extra_nix_config: | + experimental-features = nix-command flakes + - run: nix-shell --run "cargo test"