From bffd2866221b7f88963d03441dbcd7b24d0ed940 Mon Sep 17 00:00:00 2001 From: oxalica Date: Thu, 22 Sep 2022 21:47:46 +0800 Subject: [PATCH] Add CI for flake-compat --- .github/workflows/ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbd8b49..628185c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,7 +62,7 @@ jobs: run: cargo test --all -- --include-ignored nix: - name: Nix packaging + name: Nix packaging (flake) strategy: matrix: os: [ubuntu-latest, macos-latest] @@ -76,3 +76,19 @@ jobs: run: nix flake check --no-update-lock-file --show-trace --verbose - name: Flake build run: nix build --no-update-lock-file --show-trace --verbose --print-build-logs + + nix: + name: Nix packaging (legacy) + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install Nix + uses: cachix/install-nix-action@v17 + with: + nix_path: nixpkgs=channel:nixpkgs-unstable + - name: Nix build + run: nix-build