mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-04 04:32:21 +00:00 
			
		
		
		
	CI: use DetSys Nix Installer action
This commit is contained in:
		
					parent
					
						
							
								06e265ad7d
							
						
					
				
			
			
				commit
				
					
						684ba80157
					
				
			
		
					 4 changed files with 25 additions and 32 deletions
				
			
		
							
								
								
									
										29
									
								
								.github/workflows/check.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										29
									
								
								.github/workflows/check.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -14,22 +14,25 @@ jobs:
 | 
			
		|||
    name: Validate Flake
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v4
 | 
			
		||||
      - uses: cachix/install-nix-action@v20
 | 
			
		||||
        with:
 | 
			
		||||
          extra_nix_config: |
 | 
			
		||||
            access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
      - run: nix flake check
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
      - name: Install Nix
 | 
			
		||||
        uses: DeterminateSystems/nix-installer-action@main
 | 
			
		||||
      - uses: DeterminateSystems/magic-nix-cache-action@main
 | 
			
		||||
 | 
			
		||||
      - name: Check Flake
 | 
			
		||||
        run: nix flake check
 | 
			
		||||
 | 
			
		||||
  format-with-alejandra:
 | 
			
		||||
    name: Formatting via Alejandra
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v4
 | 
			
		||||
      - uses: cachix/install-nix-action@v20
 | 
			
		||||
        with:
 | 
			
		||||
          install_url: https://nixos.org/nix/install
 | 
			
		||||
          extra_nix_config: |
 | 
			
		||||
            auto-optimise-store = true
 | 
			
		||||
            experimental-features = nix-command flakes
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
      - name: Install Nix
 | 
			
		||||
        uses: DeterminateSystems/nix-installer-action@main
 | 
			
		||||
      - uses: DeterminateSystems/magic-nix-cache-action@main
 | 
			
		||||
 | 
			
		||||
      - run: nix run nixpkgs#alejandra -- -c .
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue