fix ci #179
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 NH" | |
on: | |
pull_request: | |
push: | |
branches-ignore: | |
- 'update-*' | |
workflow_dispatch: | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Install Magic Nix Cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- run: nix build github:$GITHUB_REPOSITORY/$GITHUB_SHA -L | |
- name: NixOS check | |
run: | | |
sudo mkdir -pv result-nixos | |
sudo mount -t tmpfs none ./result-nixos | |
nix build nixpkgs#nixos-install-tools | |
sudo ./result/bin/nixos-install \ | |
--flake github:$GITHUB_REPOSITORY/$GITHUB_SHA#check \ | |
--root $PWD/result-nixos \ | |
--no-root-passwd \ | |
--no-bootloader |