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'