nixos-generators/.github/workflows/build.yml
Jörg Thalheim 93c5f4da4a
ci: only build flake version
Since this flake-compat there is no value in testing different nixpkgs versions.
2021-04-25 07:23:41 +02:00

26 lines
733 B
YAML

name: "Test"
on:
pull_request:
push:
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
# Nix Flakes doesn't work on shallow clones
fetch-depth: 0
- uses: cachix/install-nix-action@v13
with:
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210415_76980a1/install
extra_nix_config: |
experimental-features = nix-command flakes
system-features = nixos-test benchmark big-parallel kvm
- name: List flake structure
run: nix flake show
- name: Run unit tests (flake)
run: nix build -L