Skip to content

Commit

Permalink
Add Nix in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lloeki committed Jul 31, 2023
1 parent da84281 commit 412aad1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -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 <nixpkgs> {}).lib.version'
- uses: actions/checkout@v3
- run: |
nix-shell --run 'which ruby'
nix-shell --run 'ruby --version'

0 comments on commit 412aad1

Please sign in to comment.