Skip to content
name: Test Nix Flake
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
- name: Debugging information

Check failure on line 12 in .github/workflows/test-nix-flake.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-nix-flake.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
run: |
nixos-build:
runs-on: ubuntu-latest
name: Build NixOS Configuration
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v13
- name: Build NixOS Flake
run: |
ls -la
cat ./flake.nix
nix build --extra-experimental-features 'nix-command flakes' --no-link --keep-going --option extra-sandbox-paths / --impure .#nixosConfigurations."x86_64-linux".config.system.build.toplevel
darwin-build:
runs-on: ubuntu-latest
name: Build nix-darwin Configuration
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v13
- name: Build nix-darwin Flake
run: |
ls -la
cat ./flake.nix
nix build --extra-experimental-features 'nix-command flakes' --no-link --keep-going --option extra-sandbox-paths / --impure .#darwinConfigurations."Dustins-MBP".system