add github actions #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
nix-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cachix/install-nix-action | |
with: | |
# This installs both Nix and Cachix | |
install_cachix: true | |
# This enables experimental Nix features, which are required for flakes | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
- name: Build flake for bjorn | |
run: nix build .#nixosConfigurations.bjorn.config.system.build.toplevel | |
- name: Build flake for daisy | |
run: nix build .#nixosConfigurations.daisy.config.system.build.toplevel | |
- name: Check the flake | |
run: nix flake check |