From 412aad1dd928d7f80a170161919c7b198ce2265a Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 31 Jul 2023 14:42:43 +0200 Subject: [PATCH] Add Nix in CI --- .github/workflows/nix.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/nix.yml diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 00000000000..0afeee61866 --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,24 @@ +name: Test Nix + +jobs: + test: + strategy: + fail-fast: false + matrix: + os: + - ubuntu-2204 + - macos-13 + nix: + - 23.05 + name: Test Nix ${{ matrix.os }} + runs-on: ${{ matrix.os }} + steps: + - uses: cachix/install-nix-action@v22 + with: + nix_path: nixpkgs=channel:nixos-unstable + - name: Print nixpkgs version + run: nix-instantiate --eval -E '(import {}).lib.version' + - uses: actions/checkout@v3 + - run: | + nix-shell --run 'which ruby' + nix-shell --run 'ruby --version'